|
Font Management in Linux, Part 1
Font PerilsFonts in Linux are crazy. Most Linux distributions ship with a big blob of serif, sans serif, and monospaced fonts, and there's barely a pixel's worth of difference between them. Fonts on computers are crazy. Sometimes I pine for the olden days of swapping out the type balls on IBM Selectric typewriters to get different fonts. You always knew what you were getting with those. Many fonts are copyrighted, so you cannot legally copy them and give them away to all of your friends. Some applications come with their own sets of fonts and rendering libraries. The GIMP does this because it thinks it can handle fonts more competently than your X server; it uses FreeType and Pango. OpenOffice.org also comes with its own set of fonts, for what reasons I know not.
The good news is your system is probably already set up to share all these fonts system-wide, and FreeType and Fontconfig are becoming standard. So the GIMP and OpenOffice.org can use your system fonts, and other applications can use the GIMP and OpenOffice.org fonts. If this is not so you can easily fix it. Just find the directories where the fonts are stored and add them to There is one more peril: duplicate fonts in different font formats. if you have the same font in two different formats, you'll get inconsistent behavior. There can be only one.
Font Formats De-MystifiedThe three main font formats are TrueType, OpenType, and PostScript. TrueType fonts have a
PostScript fonts need two files each:
OpenType is a newer font format developed jointly by Microsoft and Adobe, their "can't we all just get along" format. Its file extension is Bitmap fonts are an old format. You need a separate font file for each size and style, so as you can imagine hardly anyone uses them anymore. Most Linuxes these days come with both TrueType and PostScript Type 1 fonts. Finicky desktop publishers insist on using PostScript fonts with genuine PostScript printers, but these are becoming rare. Most printers support some form of PostScript emulation. Ghostscript is a PostScript interpreter that comes standard on most Linux distributions, so you should always be able to read and print PostScript documents.
Font ManagersLinux is lacking in good font managers. KDE's font installer is decent; it finds and displays the fonts on your system that Fontconfig knows about, and installs and removes fonts. It also displays the font type, and you can print a catalogue of all fonts or selected fonts. Use Ctrl+left-click to select non-contiguous fonts, and Shift+left-click to select a batch of contiguous fonts. Each font takes up two lines, so you can cram a lot onto a single page. On ordinary KDE you'll find the font installer in Gnome users can go into Nautilus, navigate to the folders that hold TrueType fonts, and click on individual fonts to generate a preview. But it won't work for other font formats. OpenOffice.org Writer and KWord both have nice font previewers, so at least you can quickly see what they look like.
Ubuntu Fonts: The HorrorUbuntu installs over 200 fonts, the majority of them foreign-language fonts that only the most gifted linguist would ever be able to use. They're useless anyway since most of them don't render correctly. Those odd-looking $ locate -i ae_cortoba /usr/share/fonts/truetype/ttf-arabeyes/ae_Cortoba.ttf Go into Adept or Synaptic, search for installed fonts, and you'll see at a glance which ones are relevant to you. Do not remove:
Come back next week to learn how to get detailed information on fonts, finding and installing interesting new fonts, and how to create your own.
|