[Fontconfig] how to enforce scalable fonts
Werner LEMBERG
wl at gnu.org
Thu Jan 20 12:07:02 PST 2011
>> Within an application, how can I enforce fontconfig to return
>> scalable fonts only? In other words, I want the equivalent to
>>
>> <fontconfig>
>> <selectfont>
>> <rejectfont>
>> <pattern>
>> <patelt name="scalable"><bool>false</bool></patelt>
>> </pattern>
>>
>> but without adding that to a local fontconfig config file.
>
> Humm. I'm out of ideas right now.
For out project (lilypond) it's quite important to have fontconfig
return only scalable fonts. Perhaps it makes sense to add a new
function to fontconfig which controls that?
I can try to circumvent the issue (this is, using FreeType stuff to
test whether a font is scalable), but then it would be necessary that
fontconfig returns a list of fonts which exactly fit the search
pattern so that I can iterate its elements (or perhaps fontconfig
itself provides such an iterator). Is this possible?
Werner
More information about the Fontconfig
mailing list