FONTS on KDE

Philippe Hemmel phemmel at wanadoo.fr
Wed Mar 26 07:42:20 GMT 2003


That's a long story !

Check this list (I have  mdk 9.0 distro, so some of these advices may be 
adapted regarding of your distro).

Your graphic must have the RENDER option. Check that 'xdpyinfo | grep -c -i - 
render' return 1
The fonts directories have to be in the fs (Font Server) config file (for me 
in etc/X11/fs/config).
If you're not using xft2 (as mdk 9.0, but RH 8 uses xft2), the xft config file 
has to list the directories of type 1 (postscript) fonts and true type (ttf) 
fonts (/etc/X11/XftConfig).
The font anti aliasing must be On in KDE ! Check in the control centre, look n 
feel / fonts, there is a box for this option.
Check the version of your freetype2 library : the common 2.0.9 version is not 
so good, replace it by the 2.1.3, so much better.
Try a ttf font instead of a bitmap font for the KDE objects (still in look n 
feel / fonts). The Luxi family is good, and the standard MS fonts even 
better.

And now Mozilla ! It doesn't use xft, and has its own config file. Change 
these lines in /usr/lib/mozilla-1.2/defaults/pref/unix.js (adapt it if needed 
!).

// 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); // good with freetype 2.1.3
pref("font.FreeType2.unhinted", false);
// below a certian pixel size anti-aliased fonts produce poor results
pref("font.antialias.min",        10);
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", "your ttf fonts directory 1");
pref("font.directory.truetype.2", "your ttf fonts directory 2");
//pref("font.directory.truetype.3", "/u/sam/tt_font3");

And then select fonts in Mozilla beginning with a uppercase !

That's all ! (maybe ... That's a resume, and I could forget some points). Not 
very simple, I agree, but the results on my PC are *very* good !

Philippe


Le Mardi 25 Mars 2003 21:35, Luciano Moreira - ig a écrit :
> Extending original question:
>
> PLEASE, Can you ALL explain better about fonts on X ?  I'm very much
> confused
> I and my friends have the following problems with fonts:
>
> MAIN QUESTION:
> Why usually KDE fonts have bad look (they're very bold and have non-regular
> look) ?
>
> OTHERS (main questions):
> How and where it is installed ? (any etc file ?)
> What are they names ? (commom names)
> What is the apps usually used to manage fonts ?
>
> Thank you very much for anything that help us,
>
> Luciano
>
>
> ----- Original Message -----
> From: "James Richard Tyrer" <tyrerj at acm.org>
> To: <kde at mail.kde.org>
> Sent: Tuesday, March 25, 2003 1:47 AM
> Subject: Re: [kde] How to make Mozilla fonts available to Kate?
>
> > T KDE wrote:
> > > Hi,
> > > I'm using Mozilla 1.0.1, it has some really interesting fonts (e.g.
> > > Verdana). My question is, how can I make them available to KDE
> > > applications, such as Kate?
> >
> > Duh?
> >
> > AFAIK, Mozilla doesn't have fonts.  The Mozilla fonts package is only bit
>
> mapped Courier,
>
> > Helvetica, & Times.  Verdana is a MicroSoft TrueType font.
> >
> > Therefore, I suggest that we start with a new question.
> >
> > Whatever the question is that all fonts properly installed in X11 should
>
> be available to KDE,
>
> > unless you have FontConfig installed, in which case they have to be in a
>
> directory that
>
> > FontConfig can find.
> >
> > --
> > JRT
> >
> > ___________________________________________________
> > This message is from the kde mailing list.
> > Account management:  http://mail.kde.org/mailman/listinfo/kde.
> > Archives: http://lists.kde.org/.
> > More info: http://www.kde.org/faq.html.
>
> ___________________________________________________
> This message is from the kde mailing list.
> Account management:  http://mail.kde.org/mailman/listinfo/kde.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.

___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list