On Sat, 06 May 2017 12:24:15 +0200 Jonas Smedegaard <d...@jones.dk> wrote: > * treat as bugs in consumers of fontconfig if they choke on > (properly formatted but) too rich data received from fontconfig
Agreed. Especially, since it is about as easy as calling an additional FcPatternAddString(pattern, FC_FONTFORMAT, "CFF"); for the fontconfig pattern to specify that the returned font is expected to be in OTF/CFF format. Alternatively, one could iterate through the list of fonts returned by fontconfig until one reaches the first one in a supported format, e.g.: http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/annotate/head:/filter/texttopdf.c#L68 - Fabian
signature.asc
Description: This is a digitally signed message part