NOTE/WARNING: The installation comments here are all very out-of-date. I haven't used SuSE Linux for quite some years now, and have recently abandoned even KDE. Still, some of the comments about underlying commands might be useful (or not).
To install a new "TrueType" font in SuSE 10.0, running KDE, first bring up the KDE Control Center from the GUI "start" (SuSE chameleon) button (or run it from the command line as "kcontrol"). Select the "System Administration" option, and then the "TT Font Installer". Optionally select "System Adminstrator" mode for systemwide installation (I didn't, since I'm the only user on my desktop system). Click on "Add Fonts" Point it at a .ttf font file (whereever you put it). It installs the fonts (for local user) in $HOME/.fonts Restart your applications (e.g., Mozilla)
$ fc-list | grep Code Code2001:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normalan,Normálne,Navadno,thường,Arrunta
$ xlsfonts | grep code -jjk-code2001-medium-r-normal--0-0-0-0-p-0-iso10646-1 -jjk-code2001-medium-r-normal--0-0-0-0-p-0-iso8859-1 -jjk-code2001-medium-r-normal--0-0-0-0-p-0-iso8859-15 -jjk-code2001-medium-r-normal--0-0-0-0-p-0-microsoft-ansi -jjk-code2001-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252 -jjk-code2001-medium-r-normal--0-0-0-0-p-0-microsoft-win3.1
xfd -fn -jjk-code2001-medium-r-normal--0-0-0-0-p-0-iso10646-1 &
$ fc-match :lang=grc albw.ttf: "Albany AMT" "Regular"
I find it useful to bring up the "inkscape" SVG drawing program, type in some text (including both regular ASCII and, say, accented Greek), and then examine how it changes as I change the fonts. Since inkscape falls back on the systemwide fonts for characters not present in the selected font, it's often easy to see which fonts have no glyphs in the character positions I'm viewing. (Fonts with no characters at all for character code points in question (such as Chinese when I'm typing Latin 1 / ASCII) will show no change at all from the systemwide defaults.) This helps me to avoid the mistake of thinking that a particular font looks nice in the range I'm considering when in fact it's empty there and I'm seeing only the default. (Of course, xfd accomplishes this same end by simply not showing anything in those code positions, but xfd doesn't display combining characters as combining.)
In newer systems using the "fontconfig" mechanism, the system-wide fonts are configured in "/etc/fonts/fonts.conf". In SuSE Linux, they've added some additional files which get included into it. It's best to read through the actual configuration files, and the "man" pages for "fc-list", "fc-match", and "fc-cache". The actual manual for "fontconfig" is in: "/usr/share/doc/packages/fontconfig/fontconfig-user.html". These configuration files define, inter alia, the systemwide defaults and fallback sequence for the generic family names such as "serif", "sans-serif", etc.
$ fc-match "serif" thowr___.ttf: "Thorndale AMT" "Regular"
Examining "/etc/fonts/suse-post-user.conf", I find that, indeed, "Thorndale AMT" is the second in the list of (many) fonts for which "serif" is an alias. (Presumably the first in the list, "Times New Roman", is not in fact present.)
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <dir>~/.fonts</dir> <alias> <family>serif</family> <prefer><family>Nimbus Roman No9 L</family></prefer> </alias> <alias> <family>sans-serif</family> <prefer><family>Nimbus Sans L</family></prefer> </alias> <!-- test with something very different <alias> <family>serif</family> <prefer><family>zekton</family></prefer> </alias> <alias> <family>sans-serif</family> <prefer><family>zekton</family></prefer> </alias> --> </fontconfig>
This sets up two fonts from the "Nimbus" set as the defaults for "serif" (Nimbus Roman No9 L) and "sans-serif" (Nimbus Sans L). (I've also included, commented out, a font of very different appearance. This is useful for testing - to make sure that I can actually see a change happening.)
$ fc-match "serif" n021003l.pfb: "Nimbus Roman No9 L" "Regular"
The check-box for "Allow documents to use other fonts", if UNchecked, forces the use of the Mozilla font specifications of this dialog box. These in turn can be either explicit specifications of individual fonts (e.g., "Bitstream Vera Serif") or generic specifications of font families (e.g., "serif"). If the former, they specify individual fonts (but I'm not sure how the fallbacks work if the fonts aren't really there). If the latter, then they in turn point to the system font configuration (which has an elaborate fallback mechanism).
However, changes to the Mozilla font specification (explicit or generic) do not seem to take effect until Mozilla is exited and restarted. This can be confusing, as document-specified font changes (if allowed) can take effect without restarting Mozilla, but Mozilla-specific font changes (whether explicit here or passed through by reference to the fontconfig configured systemwide fonts) require a Mozilla restart.
When I'm running the application (e.g., Mozilla) on a remote server (e.g., the noisy box in the basement) and displaying it on another (the somewhat quieter box in my office), I do all of the font configuration on the server running the application, not the server displaying it.
Some fonts have apparently encoded a straight overbar (which is, basically, a macron or "long mark") for (at least) the combining circumflex accent. In the first example below, the iota is marked with a combining circumflex accent (U+0342). This should show up, optimally, as a sort of an upward-pulled curve, or, at least minimally, as a tilde. If it shows up as a straight overbar, then the font you're using is not displaying a useful circumflex.
The following fonts, stock on SuSE 10.0, work reasonably well for ancient Greek (but none really combine the macron and breve well). Often the "sans serif" variants work the best, as, with all the fiddly bits of the accents, the serifs just add to the visual confusion.
The "Code2001" beta freeware fonts have Cypriot Syllabary http://home.att.net/~jameskass/ ("Code2000" is (very inexpensive) shareware, but I think Code2001 is freeware; I hope I'm not wrong on this.)
All portions of this document not noted otherwise are Copyright © 2006 by David M. MacMillan and Rollande Krandall.
Circuitous Root is a Registered Trademark of David M. MacMillan and Rollande Krandall.
This work is licensed under the Creative Commons "Attribution - ShareAlike" license. See http://creativecommons.org/licenses/by-sa/3.0/ for its terms.
Mozilla is a registered trademark of The Mozilla Organization.
SuSE is a registered trademark of Novell Systems, Inc.
TrueType is a registered trademark of Apple Computers, Inc.
Presented originally by Circuitous Root®
Select Resolution: 0 [other resolutions temporarily disabled due to lack of disk space]