Filtering set of available fonts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So, I was trying to figure out how to exclude bitmap fonts when
selecting fonts for printing, and my first thought was to
do, effectively

 FcFontSort (... "<family> 18:outline=1"..., trim=1);

But if you try that with, say:

 FcFontSort (... "MiscFixed 18:outline=1"..., trim=1);

You get MiscFixed listed first since the family match is
prioritized ahead of the outline match.

Looking for ideas for how to implement this:

 1) Create a custom FcFontSet from the results of FcFontList().
    and use FcFontSetSort instead of FcFontSort().
    Rather expensive.
 
 2) Pass trim=False to FcFontSort, filter the results when
    trimming the list myself. Somewhat expensive, a pain
    to implement, though I've been thinking about switching
    to trimming FcFontSort() results myself anyways.

Anything else?

Thanks,
					Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://freedesktop.org/pipermail/fontconfig/attachments/20040816/6f3421bc/attachment.pgp

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux