[Fontconfig] Caching Postscript names

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Jun 5 11:34:46 PDT 2008


On Wednesday 04 June 2008 15:05:55 Isaiah Beerbower wrote:
> On 6/3/08, Isaiah Beerbower <public at ipaqah.com> wrote:
> > On Tue, Jun 3, 2008 at 3:28 PM, Keith Packard <keithp at keithp.com> wrote:
> >> On Tue, 2008-06-03 at 12:18 -0400, Isaiah Beerbower wrote:
> >>> I am working on GNUstep's (http://www.gnustep.org/) font support. One
> >>> of GNUstep's goals is to implement the OpenStep specification
> >>> (http://www.gnustep.org/resources/OpenStepSpec.pdf.gz). Fontconfig is
> >>> already being used by GNUstep, however, in order to properly implement
> >>> the OpenStep standard  the Postscript name should be used to uniquely
> >>> reference a font. Right now GNUstep is using the full font name,
> >>> however, it would be better if the Postscript name was cached so that
> >>> it could be used instead. So my final question is: what are the pros
> >>> and cons to adding the Postscript name to the properties which
> >>> Fontconfig caches?
> >>>
> >>> I've included a patch (below) which adds the functionality.
> >>
> >> That seems fine, however note that this won't let you search for fonts
> >> by postscript name. If you want to do that, you can modify the font
> >> matching code to look for postscript names in the pattern.
> >
> > Yes, I would want it to be searchable. I'll send a new patch as soon
> > as I have it ready.
>
> And here it is (attached).

It does not work for me unless FC_POSTSCRIPT_NAME_OBJECT is added to the end 
of the list. Not sure why, fc-match prints nothing and FC_DEBUG=2 shows a 
garbled font pattern. Maybe some other list has to be updated as well? 
Anyway, the attached patch seems to work fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postscript_name2.diff
Type: text/x-diff
Size: 6504 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20080605/c063ded6/attachment.diff 


More information about the Fontconfig mailing list