92.4 Install Fonts: No Font Server
Let’s assume you are not using a font server.
A good guide to setting up fonts in X is available from http://egads.ertius.org/~rob/font_guide.txt. The following provides a summary!
We assume you are using xserver-xfree86 version 4.1 or later.
Then add the following to the top of the
Files section of
/etc/X11/xorg.conf, so that TrueType fonts are available.
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
After installing any new TrueType fonts while in X be sure to run
$ xset fp rehash
to ensure the new ones get noticed.
The order of fonts in the
Files section has an impact on what
fonts are used by Xorg. Be sure to give Type1 fonts (often rendered
poorly in Xorg) a low priority by placing the following line at the
end of the list of FontPaths:
Another trick is to avoid Xorg rescaling fonts by giving a higher priority to the unscaled fonts, by placing the following two lines relatively higher in the lits of FontPaths:
FontPath "/usr/lib/X11/fonts/100dpi:unscaled" FontPath "/usr/lib/X11/fonts/75dpi:unscaled"
Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.