GNOME Bugzilla – Bug 561185
pangocairo backend sets antialias incorrectly
Last modified: 2008-11-18 13:23:45 UTC
case VTE_ANTI_ALIAS_FORCE_ENABLE: case VTE_ANTI_ALIAS_FORCE_DISABLE: font_options = cairo_font_options_copy (pango_cairo_context_get_font_options (context)); cairo_font_options_set_antialias (font_options, antialias == VTE_ANTI_ALIAS_FORCE_ENABLE); pango_cairo_context_set_font_options (context, font_options); So, if FORCE_ENABLE it sets antialias to 1, which is CAIRO_ANTIALIAS_NONE, otherwise to 0 which is CAIRO_ANTIALIAS_DEFAULT. This is obviously wrong :) For FORCE_DISABLE, CAIRO_ANTIALIAS_NONE is the right value. I'm not sure what to use for FORCE_ENABLE in case the gdkscreen's font options don't have antialias set: use DEFAULT, GRAY or SUBPIXEL? FORCE_ENABLE is only used by g-t to force the xft backend to antialias even when no xrender is present; is this necessary at all with the pangocairo backend?
DEFAULT sounds right. For now I make it do that. For vte 1.0, lets just get rid of this setting completely.
2008-11-18 Behdad Esfahbod <behdad@gnome.org> Bug 561185 – pangocairo backend sets antialias incorrectly * src/vtepangocairo.c (font_info_create_for_screen): Handle FORCE_ENABLE correctly.