[PATCH libXfont] Add a new 'catalogue' FPE, which takes font paths from symlinks in a dir.

Eamon Walsh efw at eamonwalsh.com
Thu Jun 21 18:15:54 PDT 2007


Kristian Høgsberg wrote:
> On 6/21/07, Colin Guthrie <gmane at colin.guthr.ie> wrote:
>> Eamon Walsh wrote:
>>> Kristian Høgsberg wrote:
>>>> Oh, and if nobody objects or suggests improvements within the next
>>>> couple of days, I'll commit it an cut a libXfont release.  There,
>>>> you've been warned.
>>>  From another mail:
>>>
>>>  > +    75dpi:unscaled:pri=20 \-> /usr/share/X11/fonts/75dpi
>>>  > +    ghostscript:pri=60 \-> /usr/share/fonts/default/ghostscript
>>>  > +    misc:unscaled:pri=10 \-> /usr/share/X11/fonts/misc
>>>  > +    type1:pri=40 \-> /usr/share/X11/fonts/Type1
>>>  > +    type1:pri=50 \-> /usr/share/fonts/default/Type1
>>>
>>>
>>> What is the point of putting the font name (fixed, 75dpi, whatever) in
>>> the symlink name.  It's evident from the symlink destination.
>>>
>>> If unscaled is the only option, why not simplify the symlink name to
>>> <priority>[unscaled], i.e.
>>>
>>> 20unscaled \-> /usr/share/X11/fonts/75dpi
>>> 60 \-> /usr/share/fonts/default/ghostscript
>>> 10unscaled \-> /usr/share/X11/fonts/misc
>>> 40 \-> /usr/share/X11/fonts/Type1
>>> 50 \-> /usr/share/fonts/default/Type1
>>>
>>> This would clean things up a lot.
>> Well what's to say two separate font-providing packages don't pick the
>> same priority?

I wasn't clear on whether that was allowed or not.

> 
> Exactly.  I was planning to use the RPM name as the symlink name, so
> that the RPM package name space can provide unique names.

What about little stub files instead of symlinks?  Stub files can be 
shipped in the RPM and you wouldn't have to generate them in the post 
scriptlet or whatever.  Also, are symlinks portable?


--Eamon W.





More information about the xorg mailing list