TTFs, Japanese and RedHat7.x
These are a few notes about how I eventually got Unicode-oriented
TrueType Fonts working in a Japanese environment in RedHat Linux 7.1
The main reason I wanted to get the fonts working was to have them available
in Tcl/Tk 8.3+, however other applications such as Netscape and Mozilla
were also able to use them.
The fonts I wished to use were the Microsoft Arial (arialuni.ttf) which
is installed on the Windows partition of my system, and the Bitstream
Cyberbit font (cyberbit.ttf).
The new Japanese fonts should now be available to a heap of X applications
which allow you to select fonts. Netscape 4.7x will see the Japanese
portions of the arialuni and cyberbit fonts, but will not try and use
them as Unicode fonts - you need Netscape 6, Mozilla, etc. for that.
- the fonts need to be available in the
directory. (This directory will have been created if you identify
at installation time that Japanese is a language you want to use.)
It is OK for them to be in another directory such as
provided that directory is listed in the
In the case of arialuni.ttf I did this with a symbolic
link to the file in the Windows partition.
- having put the fonts in that place, you need to make/update the
files. You can do this is follows:
ttmkfdir > fonts.dir
- edit the resulting
file to make sure the "jisx0208.1990-0" set of codes are available for
the arialuni and cyberbit fonts. You
can do this by duplicating one of the lines (e.g. koi8-ru) and editing
it to say "jisx0208.1990-0" at the end. If you are ever likely to use
JIS X 0212 as well, you may wish to add "jisx0212.1990-0" lines. Once
you have done that, you need to update the number in the first line of
the file to relect the number of font lines present.
(For some reason the
utility only seems to generate lines for ISO-8859-* and KOI8 character
- copy the
file over the
- restart the font server. Rebooting is an easy way to do it.
In Tcl/Tk, you need to create a font, e.g.:
and specify that in the Tk widget with
The full set of fontnames available to Tcl/Tk can be seen by running
font create selfont -family "arial unicode ms" -size 24
Here is a
of a Tk widget (my Tcl/Tk Japanese vocab drill system) using the MSArial
font at 24 pts.
Jim Breen's Home Page and Japanese Page.