http://CJK-Howto.net


CJK-HOWTO

CJK-Testing

Fonts-HOWTO

DownloadFonts

Unicode

UTF

Config-Examples


Console

Terminal

Editors

InputMethod

Mail

Printing



1U Rackmount Chassis

Custom-Chassis.com

Linux-1U.net

1U-ITX.net


ITX-Blades.net


Small PC cases

Mini-Box.net

Wrap-Box.net

Wrap-OS.net


Wan-Sim.net



Linux-Consulting.com

Linux-CAE.net

Linux-Sec.net

Linux-Boot.net

Linux-Backup.net

Linux-Wireless.org

Linux-Office.net

Linux-Video.net

Linux-VOIP.net

Linux-Jobs.net

Linux-Diff.net

1U-Raid5.net

Linux-Howto.net


Spam Reporting



Free Linux CDs

ISO9660.org

Distro-CD.org

Patch-CD.org




Contact



Linux is a registered trademark of
Linus Torvalds

More Linux Legalese


CJK-Howto
( Chinese-Japanese-Korean )



CJK-HOWTO CJK-Testing Fonts-HOWTO DownloadFonts Unicode UTF Config-Examples
Console Terminal Editors InputMethod Mail Printing

CJK Config Test

CJK Fonts Testing

CJK Font Server Testing

  • Checking the Font Server
    • Manually invoking X11 Font Server
        xfs -droppriv -daemon

    • xset -q
        # xfs already runninga
        unix:7100

        # to manually add it
        xset fp+ unix:7100
        xset fp rehash

    • List of Installed Fonts
        fc-list | sort

CJK Environment Variables

    Suse.de/~mfaian locales-env-var
    Suse.de/~mfaian local-examples


  • Define the primary variables
      export LANG=ja_JP.utf-8
      export LC_ALL=ja_JP.utf-8

    • use the ( *.utf-8, *.jis, .. ) fonts that is installed on your system

  • List of valid locales
      locale
        LANG=en_US.UTF-8 ---> LANG was explicitly assigned
        LC_CTYPE="en_US.UTF-8" ---> LC_CTYPE inherited its value

  • List of valid locales
      locale -a
        /usr/X11R6/lib/X11/locale

  • List of valid ( supported ) unicode locales
      locale -a | grep -i utf

Installed CJK Font Availability

  • Checking the FontPaths
    • View the FontPaths
        xset q

  • Checking for Installed Chinese Fonts
    • Simplified Chinese
        xlsfonts |grep -i gb2312

    • Traditional Chinese
        xlsfonts |grep -i big5

  • Checking for Installed Japanese Fonts
      xlsfonts | egrep -i "jis"


  • Checking for Installed Korean Fonts
      xlsfonts | egrep -i "ksc|ksx"


Installing New Font

Misc Font Commands

    x.org xlfd = X Logical Font Descriptor

  • xlsfonts
  • Unicode support
      xlsfonts | grep iso10646
      ?? is having duplicate entries a bad thing ??

  • chkfontpath --add /usr/local/fonts/new-stuff
  • ttmkfdir -m 50 -o fonts.scale ( trueType font )
  • gtkfontsel

  • Find the alias ( font.dir )
    • xfd -fn 10x20
        10x20 "-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1"

    • xfd -fn "Fixed 10"

Font Tests with Xterm

  • Define your app-defaults files

  • Make sure xterm is compiled with "wide char" unicode capability
      ./configure --enable-wide-chars

  • xterm
    xterm -version ( should be 205 or later )

  • kterm
    kterm -version ( should be 6.2.0 or later )

  • rxvt
    rxvt -version ( should be v2.7.10 or later )


Copyright © 2000
Linux-Consulting
All Rights Reserved.
Updated: Sun Oct 16 19:28:42 2005 PDT