diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-12-25 02:48:26 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-12-25 02:48:26 -0500 |
commit | a5f4a97aa4122d8c4b8f31053d421a52c356e270 (patch) | |
tree | 2e5276d91d114c61cf7f696acf4586353e09263f /src/cairo-font-face-twin.c | |
parent | 0c7eaf6e0a2c2f0db634f8120fcbc03f7e8fd751 (diff) | |
download | cairo-a5f4a97aa4122d8c4b8f31053d421a52c356e270.tar.gz |
[twin] Don't hint pen if hint-style is SLIGHT
Diffstat (limited to 'src/cairo-font-face-twin.c')
-rw-r--r-- | src/cairo-font-face-twin.c | 4 |
1 files 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; |