python-fontconfig icon indicating copy to clipboard operation
python-fontconfig copied to clipboard

request pattern match

Open liuyug opened this issue 12 years ago • 1 comments

In sh

fc-match -a 'sans'

You may get the matched font list.

So may you create the liked feature?

I need get font object by

for font in fonts:
    print font....

But I get a str object. How I get font object?

liuyug avatar Mar 04 '13 04:03 liuyug

Pass the string to fontconfig.FcFont. Also note that https://github.com/lilydjwg/python-fontconfig recently add ttc font support, or you'll always get the first in the file.

lilydjwg avatar Oct 09 '14 09:10 lilydjwg