[Fontconfig] how to enforce scalable fonts

Behdad Esfahbod behdad at behdad.org
Thu Jan 20 12:24:50 PST 2011


On 01/20/11 15:07, Werner LEMBERG wrote:

> 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?

There are some proposals for revamping font matching to allow 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?

Check out FcFontSort().

behdad

>     Werner
> 


More information about the Fontconfig mailing list