[Fontconfig] Make GTK+ apps (and Gnome) fully respect your .fonts.conf

Vasile Gaburici vgaburici at gmail.com
Tue Aug 5 19:27:19 PDT 2008


That's a bit odd. I had no trouble getting pango-view, which uses
Cairo on Fedora 9, to render fonts as instructed in .fonts.conf...

On Wed, Aug 6, 2008 at 5:24 AM, Erik <erik at beanbasket.com> wrote:
> 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)
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
>


More information about the Fontconfig mailing list