From a5f4a97aa4122d8c4b8f31053d421a52c356e270 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 25 Dec 2008 02:48:26 -0500 Subject: [PATCH] [twin] Don't hint pen if hint-style is SLIGHT --- src/cairo-font-face-twin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-font-face-twin.c b/src/cairo-font-face-twin.c index 1819135e0..b61e79e9c 100644 --- a/src/cairo-font-face-twin.c +++ b/src/cairo-font-face-twin.c @@ -317,7 +317,7 @@ _twin_compute_snap (cairo_t *cr, const signed char *snap; double x, y; - info->snap = scaled_font->options.hint_style != CAIRO_HINT_STYLE_NONE; + info->snap = scaled_font->options.hint_style > CAIRO_HINT_STYLE_NONE; if (!info->snap) return; @@ -361,7 +361,7 @@ _twin_compute_pen (cairo_t *cr, double scale, inv; cairo_bool_t hint; - hint = scaled_font->options.hint_style != CAIRO_HINT_STYLE_NONE; + hint = scaled_font->options.hint_style > CAIRO_HINT_STYLE_SLIGHT; if (!hint) { *penx = *peny = width; return;