[Fontconfig] [PATCH 0/1] [for Review] PostScript Names branch

James Cloos cloos at jhcloos.com
Sat Apr 3 18:57:24 PDT 2010

I just posted a branch which includes support for caching and querying
fonts' PostScript names as the psnames branch of:

       git://people.freedesktop.org/~cloos/fontconfig.git psnames


Almost everything works.  Notably fc-{cache,cat,query,scan,list} all
Do The Right Thing.  Eg:

   :; fc-list :psname=LMRomanSlant12-Regular
   Latin Modern Roman Slanted,LM Roman Slanted 12:style=12 Regular,Regular

If you had a document which called for /LMRomanSlant12-Regular, the above
search -- or its library version -- will point you to the file.


Fc-match fails to return the desired font when given only a psname:

   :; ./fc-match/fc-match :psname=LMRomanSlant12-Regular
   DejaVuSans.ttf: "DejaVu Sans" "Book"

Presumably that the library version of that call fails in the same way.

I have not yet determined how to wire up fc-match(1) to return the
desired font when only the desired psname is known.

PSnames support has not been added to the DTD.


Everything to do with the xml.


All that remains is to get fc-match(1) and the comparable library api to
find the right font -- or perhaps a list of matching fonts -- when only
the psname is provided, and to wire up the xml code to support psname in
the configuration files.

The patch is in the followup to this mail.

James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

More information about the Fontconfig mailing list