[cairo-commit] src/cairo-win32-font.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Fri May 14 11:49:05 PDT 2010
src/cairo-win32-font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 435329a70f172c8cec72831dd7a2b2cfc0496342
Author: Richard Procter <richard.n.procter at gmail.com>
Date: Fri May 14 14:48:46 2010 -0400
Bug 28100 - Font option CAIRO_HINT_METRICS_OFF unhonoured on win32
Fix typo. Ouch!
diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c
index cb253dd..aa4d747 100644
--- a/src/cairo-win32-font.c
+++ b/src/cairo-win32-font.c
@@ -967,7 +967,7 @@ _cairo_win32_scaled_font_init_glyph_metrics (cairo_win32_scaled_font_t *scaled_f
extents.height = scaled_font->base.ctm.yy * (font_extents.ascent + font_extents.descent) / scaled_font->y_scale;
extents.x_advance = extents.width;
extents.y_advance = 0;
- } else if (scaled_font->preserve_axes && scaled_font->base.options.hint_style != CAIRO_HINT_METRICS_OFF) {
+ } else if (scaled_font->preserve_axes && scaled_font->base.options.hint_metrics != CAIRO_HINT_METRICS_OFF) {
/* If we aren't rotating / skewing the axes, then we get the metrics
* from the GDI in device space and convert to font space.
*/
More information about the cairo-commit
mailing list