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

Re: xorg and fonts



On 2008-12-06 20:31 +0100, lee wrote:

> On Sat, Dec 06, 2008 at 09:37:38AM +0100, Sven Joachim wrote:
>> 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"
>
> UTSL?

"Use the source, Luke" -- see http://catb.org/jargon/html/U/UTSL.html.

> xset q says:
>
> Font Path:
>  /usr/share/fonts/X11/100dpi/:unscaled,
>  /usr/share/fonts/X11/misc/,
>  /usr/share/fonts/X11/Type1/,
>  /usr/share/fonts/X11/misc,
>  /usr/share/fonts/X11/100dpi/:unscaled,
>  /usr/share/fonts/X11/Type1,
>  /usr/share/fonts/X11/100dpi,
>  /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
>
> So what does it mean when man xorg.conf says that "the server falls
> back to the compiled-in default font path" in case no font path is
> specified in xorg.conf? In xorg.conf, I have specified:
>
>  FontPath	"/usr/share/fonts/X11/encodings/"
>  FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
>  FontPath	"/usr/share/fonts/X11/misc/"
>  FontPath	"/usr/share/fonts/X11/Type1/"
>  FontPath	"/usr/share/fonts/X11/util/"

Do these directories all exist?  Non-existent entries will be removed
from the font path.

> Now some font paths seem to come from somewhere else than from the
> configuration. What happens with the compiled-in defaults when a font
> path is specified in the configuration?

They are merged, with the font path in the configuration coming first.
See /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz for details.

> And look at the path: Three entries are doubled (100dpi/:unscaled,
> misc, Type1),

Because they are in the xorg.conf _and_ in the default path.

> one entry seems to be incorrect (100dpi),

Why should it be incorrect?

> and one entry
> might come from the compiled-in defaults.

The /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType directory, I
suppose.

> Two of the paths I specified
> seem to be invalid --- if there are no fonts in those directories,
> what do they have to do under /usr/share/X11/fonts? What a mess ...

It was _you_ who specified them, and the X server just corrected that
misconfiguration by deleting non-existent directories.  The entry

FontPath	"/usr/share/fonts/X11/encodings/"

only makes sense if the xfonts-encodings is installed, for instance.

> Is it just me, or is Debian getting more and more sloppy with things
> like this?

Apart from the bad xorg.conf manpage, I don't see anything wrong.

Sven


Reply to: