next up previous contents index
Next: More Links Up: Japanese Printing and Text Previous: Tips For Easy Installation

Commercial MS TrueType Fonts

I am not promoting this method of font use and the individual user should be aware that it may violate Microsoft copyright. I am merely documenting that it can be done. Unfortunately, the freely available Japanese fonts do not look as good as the commercial fonts. While this is fine for home documentation, people submitting an academic or commercial report might feel their faith waiver and consider using a non-Linux system. Some people with this dilemma have taken the fonts of their secondary system and installed them under Linux before deleting that other OS.

The VFlib Vector Font library works with the TrueType fonts found on the following Japanese operating systems: Windows 3.1, Windows '95, Windows NT. (Remember these fonts aren't necesssary to use Japanese. They just improve the appearance.)

From Linux, mount your Windows partion under /mnt.

 # mount /dev/hdb1 -t msdos /mnt

Copy the msgothic.ttc and msmincho.ttc files into /usr/share/fonts/TrueType/. In this case, I have my fonts in Windows NT 4.0J on a vfat filesystem. (I have the partition for my wife. I personally don't use it.) ;-)

debian-jp:/mnt/winnt/fonts# cp msgothic.ttc msmincho.ttc /usr/share/fonts/TrueType/

The font path is defined in your vfontcap file. I keep mine in /etc/. You should make sure that the path is defined correctly. If not, add the following to your vfontcap file:

###--------------------------
      ### TRUETYPE FONT (Windows fonts)
      min|MicroSoft mincho:\
           :ft=truetype:\
           :ff=/usr/share/fonts/TrueType/msmincho:
      goth|Microsoft gothic:\
           :ft=truetype:\
           :ff=/usr/share/fonts/TrueType/msgothic:
###--------------------------

Create the font index files that map the JIS code to the font internal codes. The ttindex program is included in the VFlib package. I'm using VFlib-2.22.

debian-jp:/mnt/winnt/fonts# cd /usr/share/fonts/TrueType/
debian-jp:/usr/share/fonts/TrueType# ttindex msgothic.ttc
debian-jp:/usr/share/fonts/TrueType# ttindex msmincho.ttc
debian-jp:/usr/share/fonts/TrueType# ls
msgothic.ttc     msmincho.ttc     vfontcap.dfhs78  vfontcap.ms
msgothic.tti     msmincho.tti     vfontcap.dfhs90
debian-jp:/usr/share/fonts/TrueType#

Notice that the msmincho.tti and msgothic.tti files were created.

Set the VFONTCAP environmental variable to /usr/share/fonts/TrueType/vfontcap.ms.

 # export VFONTCAP=/usr/share/fonts/TrueType/vfontcap.ms


next up previous contents index
Next: More Links Up: Japanese Printing and Text Previous: Tips For Easy Installation
Craig Toshio Oda
1998-05-07