Re: Caching Postscript names

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


On Thu, Jun 5, 2008 at 2:34 PM, Evgeniy Stepanov
<eugeni.stepanov@xxxxxxxxx> wrote:
> On Wednesday 04 June 2008 15:05:55 Isaiah Beerbower wrote:
>> On 6/3/08, Isaiah Beerbower <public@xxxxxxxxxx> wrote:
>> > On Tue, Jun 3, 2008 at 3:28 PM, Keith Packard <keithp@xxxxxxxxxx> wrote:
>> >> On Tue, 2008-06-03 at 12:18 -0400, Isaiah Beerbower wrote:
>> >>> I am working on GNUstep's ( font support. One
>> >>> of GNUstep's goals is to implement the OpenStep specification
>> >>> ( 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.

Is it possible that the change breaks compatibility with existing
caches? It works fine on my machine.

If this is the problem, I'm fine with the Postscript name being moved
to the end of the list. I'll take a look, though, and make sure I
didn't mis something.

- Isaiah Beerbower

Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux