vte r2148 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2148 - in trunk: . src
- Date: Tue, 18 Nov 2008 13:23:42 +0000 (UTC)
Author: behdad
Date: Tue Nov 18 13:23:42 2008
New Revision: 2148
URL: http://svn.gnome.org/viewvc/vte?rev=2148&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/src/vtepangocairo.c
Modified: trunk/src/vtepangocairo.c
==============================================================================
--- trunk/src/vtepangocairo.c (original)
+++ trunk/src/vtepangocairo.c Tue Nov 18 13:23:42 2008
@@ -218,13 +218,21 @@
switch (antialias) {
cairo_font_options_t *font_options;
+ cairo_antialias_t cr_aa;
case VTE_ANTI_ALIAS_FORCE_ENABLE:
case VTE_ANTI_ALIAS_FORCE_DISABLE:
+
+ if (antialias == VTE_ANTI_ALIAS_FORCE_ENABLE)
+ cr_aa = CAIRO_ANTIALIAS_DEFAULT; /* let surface decide between gray and subpixel */
+ else
+ cr_aa = CAIRO_ANTIALIAS_NONE;
+
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);
+ cairo_font_options_set_antialias (font_options, cr_aa);
pango_cairo_context_set_font_options (context, font_options);
cairo_font_options_destroy (font_options);
+
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]