[Fontconfig] Make GTK+ apps (and Gnome) fully respect your .fonts.conf
Erik
erik at beanbasket.com
Tue Aug 5 19:24:14 PDT 2008
Since this has bothered me for a long time, as I imagine it would
anybody who likes to uber-tweak their .fonts.conf, I figured I would put
it out there. Gnome and GTK+ apps never respected my per-font hinting
settings in .fonts.conf which drove me totally bonkers. Apparently,
what causes them to ignore the hinting settings is actually due to cairo
overriding it. I found a solution on Ubuntu forums and created a patch
for Cairo that will make it respect .fonts.conf:
--- cairo-1.4.12/src/cairo-ft-font.c.orig 2008-06-05
19:34:45.000000000 -0500
+++ cairo-1.4.12/src/cairo-ft-font.c 2008-06-05 19:35:17.000000000 -0500
@@ -1641,7 +1641,7 @@
options->base.subpixel_order = other->base.subpixel_order;
}
- if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
+ //if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
options->base.hint_style = other->base.hint_style;
if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
More information about the Fontconfig
mailing list