[Welcome to Sensei's Library!]

StartingPoints
ReferenceSection
About


Referenced by
KGSUsersGuide
AsianFonts

 

Asian Fonts Java
   

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

Java 1.4

  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.

Java 1.5 (beta 2)

I have no idea why the next sequence works, but it does so on my box. (Documentation says that you also must do something else, but for me the next two steps were sufficient.)

  1. Get all the same Korean/Japanese fonts.
  2. Create directory $JAVA_HOME/jre/lib/fonts/fallback, copy or link the files into it.

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.