Round glyph locations to nearest pixel, as done in cairo_scaled_font_show_glyphs. --- commit 880a9395d46ef5443207f4a05d37577366250cc1 tree 0503f89c5e05049553b6dbf3ed71af8edaf96152 parent a5e5df796263d10960a7523fc80096ddc71de0c8 author Brian Ewins Sat, 16 Dec 2006 12:29:50 +0000 committer Brian Ewins Sat, 16 Dec 2006 12:29:50 +0000 src/cairo-atsui-font.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cairo-atsui-font.c b/src/cairo-atsui-font.c index 74498c1..ad4c517 100644 --- a/src/cairo-atsui-font.c +++ b/src/cairo-atsui-font.c @@ -719,9 +719,11 @@ _cairo_atsui_font_old_show_glyphs (void for (i = 0; i < num_glyphs; i++) { CGGlyph theGlyph = glyphs[i].index; + /* round glyph locations to the nearest pixel */ + /* XXX: FRAGILE: We're ignoring device_transform scaling here. A bug? */ CGContextShowGlyphsAtPoint(drawingContext, - glyphs[i].x, - glyphs[i].y, + _cairo_lround (glyphs[i].x), + _cairo_lround (glyphs[i].y), &theGlyph, 1); }