X-TrueType Server and TrueType fonts 

http://www.io.com/~kazushi/xtt/

Features of XTT 

API 

The X has a private library named libfont.a. XTT patch changes this library public named libfont.so and add TrueType fonts ability. Therefore both the X server and the xfs program get such ability throught libfont.so by using traditional X API.

xfs 

You can replace only a xfs program. For example, you can use special X server for your hardware and use TrueType fonts through new xfs program.

Configuration of XTT 

TrueType fonts must be registered in a X system. First of all, we have to create a fonts.dir file for those fonts.

  1. $ mkdir /usr/local/share/fonts/truetype

  2. $ cd /usr/local/share/fonts/truetype

  3. $ cp /cdrom/truetype/* .

    Copy TrueType fonts. ".ttf" and ".ttc" files can be used.
  4. $ vi fonts.dir

Create your fonts.dir with same format of traditional fonts.dir. Here is my example for Microsoft's free True Type Fonts. You can also use my mkttfdir to create fonts.dir file automatically.

Second, we have to register the directory containing fonts.dir to the X system. You can use TrueType fonts from X server directly only If you are using a XTT server by doing like following.

  1. $ xset +fp /usr/local/share/fonts/truetype

    Register a directory to the X system.

Otherwise, we have to register the directory containing fonts.dir to the xfs program, and then register the xfs to the X system like follwoing.

  1. $ vi /usr/X11R6/lib/X11/fs/config

    Add "/usr/local/share/fonts/truetype/" as one of catalogue.
  2. $ xfs

  3. $ xset +fp tcp/localhost:7100

    Register the xfs to the X system.

What is TrueType Font?