[Fontconfig] style preference in config
Jeremy Huddleston
jeremyhu at freedesktop.org
Mon Apr 20 11:30:53 PDT 2009
I've run into a bit of a problem with Fontconfig. I first noticed
this while using firefox. Some web pages' <pre> blocks would get
rendered garbled. I tracked this down to a simplified test case using
pango-view:
$ pango-view --font="Fixed" /etc/passwd
# See garbled cruft in the view (see attached)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 38169 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20090420/d95b96b6/attachment-0001.png
-------------- next part --------------
I think the main issue here is the fontconfig match problem:
$ fc-match Fixed
12x13ja.pcf.gz: "Fixed" "ja"
If I explicitly ask for the "Regular" style, I get an expected render:
$ fc-match Fixed:style=Regular
7x13.pcf.gz: "Fixed" "Regular"
$ pango-view --font="Fixed:Style=Regular" /etc/passwd
# See an expected render
It looks like we need some logic in the config file to prefer
style=Regular if no style is designated. Am I correct in that
assumption? If so, how do I do that? If not, does anyone know what's
going wrong here?
Thanks,
Jeremy
More information about the Fontconfig
mailing list