LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   oh glorious fonts (https://www.linuxquestions.org/questions/linux-general-1/oh-glorious-fonts-32497/)

Karnak 10-10-2002 08:55 PM

oh glorious fonts
 
extension .ttf fonts, i have some i would like to install but don't know if i can or how to do it if and when its acutally possible.

i have redhat 7.3, for those incline to stop laughing, (and justifiably so), at me and give me help...8P


thanks

almostlucky 10-11-2002 12:23 AM

-put the *.ttf fonts in a folder ( mine are in /usr/X11R6/lib/X11/fonts/truetype)

-cd into that folder, and 'ttmkfdir > fonts.scale'
then do a 'mkfontdir'

-edit your XF86config and Xftconfig, adding the path to the font dir (following the format of the other paths)

-restart X.


-you can also edit your mozilla/defaults/pref/unix.js to look something like this to enable TT fonts in mozilla:
Code:


// TrueType
pref("font.FreeType2.enable", true);
pref("font.freetype2.shared-library", "libfreetype.so.6");
// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", true);
pref("font.FreeType2.unhinted", false);
// below a certian pixel size anti-aliased fonts produce poor results
pref("font.antialias.min",        9);
pref("font.embedded_bitmaps.max", 1000000);
pref("font.scale.tt_bitmap.dark_text.min", 64);
pref("font.scale.tt_bitmap.dark_text.gain", "0.8");
// sample prefs for TrueType font dirs
pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/truetype");


Karnak 10-11-2002 12:48 AM

ooo, thanks chief.


All times are GMT -5. The time now is 03:42 PM.