[Fontconfig] fc-match for monospace?

Patrick M. Rutkowski rutski89 at gmail.com
Fri Sep 25 15:25:40 PDT 2009


I'm very confused about how "fc-match" is supposed to work.

I run something like: `fc-match :spacing=mono`, or the synonym
`fc-match :spacing=100`, yet it does NOT give me a monospace font as I
expected. I instead get:

Vera.ttf "Bitstream Vera Sans" "Roamn"

At the same time, `fc-list :spacing=mono fullname` shows that there
are indeed monospace fonts on the system
...
:fullname=Free Monospaced
:fullname=DejaVu Sans Mono
...

What's the deal here?

I want to integrate libfreetype in my application for font searching
in the Linux port. Is it really the case that I won't be able to do
things like allow the user to ask for a monospace font and ACTUALLY
GET ONE? (instead of Bitstream Vera Sans).

Many thanks in advance
-Patrick


More information about the Fontconfig mailing list