[Welcome to Sensei's Library!]

StartingPoints
ReferenceSection
About


Referenced by
KGSUsersGuide

 

Asian Fonts Java
   

A practical guide(by helger) for debian users (other linux distros handle it similarly) how to see Korean fonts in linux:

  1. Install Korean fonts: apt-get install ttf-baekmuk, apt-get install xfonts-baekmuk
  2. Link or copy all fonts from /usr/share/fonts/truetype/baekmuk to $JAVA_HOME/lib/fonts (if $JAVA_HOME points a j2re installation) or to $JAVA_HOME/jre/lib/fonts(if it points to a j2sdk installation).
  3. cd to the destination directory (.../lib/fonts), do ttmkfdir > fonts.dir (for this you might have to do apt-get install ttmkfdir at first)
  4. cd .., add the next to the end of the font.properties:
  serif.2=-misc-Baekmuk Batang-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
  serif.bold.2=-misc-Baekmuk Batang-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
  sansserif.2=-misc-Baekmuk Gulim-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
  sansserif.bold.2=-misc-Baekmuk Gulim-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0

Restart cgoban. It should work. (Let me know if it does not.) To see both Korean and Japanese, just add

  sansserif.3=-wadalab-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
sansserif.bold.3=-wadalab-gothic-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
serif.3=-watanabe-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
serif.bold.3=-watanabe-mincho-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0

at the end of your font.properties. (For this, you obviously must have the watanabe fonts installed, use apt-cache search watanabe to find them.)

For adding more fonts (Chinese, ...) just follow the same pattern.

helger



This is a copy of the living page "Asian Fonts Java" at Sensei's Library.
(OC) 2004 the Authors, published under the OpenContent License V1.0.