TrueType is not properly enabled in mozilla the pref("font.directory.truetype.x", ""); options are not set correctly in /usr/lib/mozilla/defaults/pref/unix.js causing only -b&h-luxi- fonts that are in /usr/X11R6/lib/X11/fonts/TTF to be included.
OK, so how should it be set ?
I changed "TrueType" to "truetype", there are however a lot more dir's but none of which contained usefull truetype fonts. pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/TTF"); pref("font.directory.truetype.2", "/usr/X11R6/lib/X11/fonts/truetype"); I changed the font's to get truetype font's, these lines appeared in my prefs.js after changing the fonts in Edit->Prefs->Appearance->fonts user_pref("font.name.sans-serif.x-western", "Agfa Monotype-arial-iso8859-1"); user_pref("font.name.serif.x-western", "Agfa Monotype-times new roman-iso8859-1"); // these are default, it's possible you can just skip these, they were in my prefs.js user_pref("font.name.cursive.x-western", "Agfa Monotype-arial black-iso8859-1"); user_pref("font.name.fantasy.x-western", "Agfa Monotype-arial black-iso8859-1");
I just removed font.name.cursive.x-western and font.name.fantasy.x-western from my prefs.js and restarted mozilla, they defaulted to those values so they are not necessary to add to unix.js or other global prefs file. Although it problably wouldn't hurt to put them there.
Ok, I dont have a problem with changing the search directories if they are not 100% the "default" ones defined either by: 1) LFH 2) Accepted as default due to common use by the masses. Setting of the fonts however ... that is up to the user .... and do not need hacking of .js files. Thus if the directory names in use are /usr/X11R6/lib/X11/fonts/truetype and /usr/share/fonts/truetype, then fine, we can change them ... I added it to what was defined on my system, and that have come a long way, meaning it could either be personal preference, or credited to some or other distro I used. Anyhow, open for comments like always.
Oops, never can get it right ... LHS = FHS
The default font's aren't truetype fonts, the agfa font's i suggested as default are still the same font just that they are truetype instead of bitmapped. It is possible to use some other font though, the microsoft fonts are the best fonts but i couldn't get them to show up in Appearance->Fonts. =/
With a new user, fonts looks fine ... check that it is not related to you not getting the MS fonts to work.