Re: xorg and fonts
On 2008-12-06 09:13 +0100, lee wrote:
> On Sat, Dec 06, 2008 at 08:44:30AM +0100, Sven Joachim wrote:
>> On 2008-12-06 08:23 +0100, lee wrote:
>> > There was a Section "Files" in xorg.conf, but it was empty.
>>
>> Which is fine because the X server knows (or at least, is supposed to
>> know) where to find fonts.
>
> See man xorg.conf:
>
>
> "When this [the FontPath] entry is not specified in the config file,
> the server falls back to the compiled-in default font path, which
> contains the following font path elements:
>
> /usr/lib/X11/fonts/misc/
> /usr/lib/X11/fonts/TTF/
> /usr/lib/X11/fonts/Type1/
> /usr/lib/X11/fonts/75dpi/
> /usr/lib/X11/fonts/100dpi/"
The manpage is wrong about the paths, fonts are in /usr/share/fonts and
that's where the server looks. See http://bugs.debian.org/428918.
> lee@cat:~$ ls -la /usr/lib/X11/
> total 48
> drwxr-xr-x 3 root root 4096 2008-12-06 00:33 .
> drwxr-xr-x 95 root root 40960 2008-12-05 23:31 ..
> drwxr-xr-x 2 root root 4096 2008-12-06 00:33 x11perfcomp
> lee@cat:~$
>
>
> The server knows where it could find fonts, but there are none. It
> worked before I made the FontPath entries, though.
>
> So how does the xserver find the fonts?
It uses a compile-time path, we have to UTSL to find it out. The Debian
package is configured with (sorry for the overly long line)
--with-default-font-path="/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
Sven
Reply to: