Comment 6 for bug 130687

Revision history for this message
In , James H. Cloos Jr. (cloos-jhcloos) wrote :

This is an example of the more general issue that <alias>s are matched
to patterns' <fontname>s literally, but actual fonts' names are matched
with whitespace ignored.

Ie, if the font is installed, these:

 :; fc-match DejaVuSansMono
 :; fc-match 'DejaVu Sans Mono'

give the same result. But to use aliases you need to have all
possibilities accounted for in the conf.

It is also related to the issue that libs like poppler pass PS names to
fontconfig whereas fontconfig caches the full names. (For Type1 fc
caches the /FullName, poppler passes the /FontName; for sfnts poppler
passes the TT_NAME_ID_PS_NAME, which fc explicitly ignores:

 #if 0
                 case TT_NAME_ID_PS_NAME:
                 case TT_NAME_ID_UNIQUE_ID:
 #endif

)