[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Understanding Font Paths



Alan Chandler wrote:

> I am running kde under debian unstable and something weird has suddenly
> happened to the fonts in konsole.

<snip>

> My /etc/X11/XFConfig-4 has the following in it
>
> Section "Files"
>   FontPath      "/usr/lib/X11/fonts/misc"
>   FontPath      "/usr/lib/X11/fonts/100dpi:unscaled"
>   FontPath      "/usr/lib/X11/fonts/75dpi:unscaled"
>   FontPath      "/usr/lib/X11/fonts/Type1"
>   FontPath      "/usr/lib/X11/fonts/Speedo"
>   FontPath      "/usr/X11R6/lib/X11/fonts/100dpi"
>   FontPath      "/usr/X11R6/lib/X11/fonts/TrueType"
>   FontPath      "/usr/X11R6/lib/X11/fonts/Speedo"
>   FontPath      "/usr/X11R6/lib/X11/fonts/Type1"
>   FontPath      "/usr/X11R6/lib/X11/fonts/misc"
>         # if the local font server has problems, we can fall back on these
> EndSection

AIUI QT3.x uses XRender to display fonts and gets its font info from 
/etc/X11/XftConfig. Mine has the following font paths in it:

dir "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
dir "/usr/X11R6/lib/X11/fonts/Type1"
dir "/usr/share/fonts"

As an experiment, comment out all font paths in XF86Config-4 except for misc 
(bitmap) and comment out the freetype module in your modules section. You 
should find that KDE still starts up fine. You need to leave one fontpath 
otherwise X will default to a set of compiled in paths not dissimilar to what 
you already have and you will miss the effect. Of course this won't help any 
apps using legacy toolkits so don't make this permanent :-/

> I am very confused - could do with some enlightenment.

Me too. I thought fontconfig was part of X4.3 and was meant to deprecate 
XftConfig. I don't understand why it's in sid already. Which toolkits use it? 
Just to add to the confusion, can anyone explain what Xprint is?

-- 
Simon Hepburn.



Reply to: