XFree86 4.0 直接提供了對 TrueType 的支援和一些新功能。能改進對字型的支援是架構在 Juliusz Chroboczek 的 xfsft。而 xfsft 則是架構在源自於 Mark Leisher 的 FreeType font library。因此 XFree86 4.x 的設定檔類似於 xfsft 和 Redhat 修改的 xfs。
FontPath
一直還在 XF86Config
檔。而對於 Redhat xfs 的使用者,只要將 FontPath
從 /etc/X11/fs/config
搬回 XF86Config
即可。而現若只要 TrueType 支援不再需要 xfs 了。除非你還需要提供網路上其他 client 字型,否可你可以將 xfs 關閉。
Section "Files" FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/X11R6/lib/X11/fonts/Speedo" FontPath "/usr/share/fonts/default/Type1" FontPath "/usr/local/share/fonts/ttfonts" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/75dpi" EndSection
為了使用 TrueType 字,你還必須在 "Module" 那節要指定 X server 要使用哪一個模組:
Section "Module" Load "freetype" Load "speedo" Load "type1" EndSection
就如同 xfsft 和 Redhat 的 xfs,你還必須在每一個 TrueType 字型目錄下產生 fonts.scale
和 fonts.dir
檔。而
ttmkfdir 在產生 fonts.scale
時很有用。請參考前面 xfs 那節以取得更詳細的資料和例子。
xtt
是另一個以支援表意文字 (ideographics, Oriental) 著名 TrueType 模組。兩種都可使用,但是在同一時間你只能使用一種。