Support disabling antialiased text. --- commit 00f5bab9140d1cefa27ecef7de5dba0f36d0ab6e tree e16f290618f3222cbe4cc296d6d54d801ec7b947 parent 880a9395d46ef5443207f4a05d37577366250cc1 author Brian Ewins Sat, 16 Dec 2006 17:01:17 +0000 committer Brian Ewins Sat, 16 Dec 2006 17:01:17 +0000 src/cairo-atsui-font.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/cairo-atsui-font.c b/src/cairo-atsui-font.c index ad4c517..d7e58c1 100644 --- a/src/cairo-atsui-font.c +++ b/src/cairo-atsui-font.c @@ -657,6 +657,10 @@ _cairo_atsui_font_old_show_glyphs (void CGContextSetFont(drawingContext, cgFont); + if (font->base.options.antialias == CAIRO_ANTIALIAS_NONE) { + CGContextSetShouldAntialias (drawingContext, false); + } + textTransform = CGAffineTransformMakeWithCairoFontScale(&font->base.scale); textTransform = CGAffineTransformScale(textTransform, 1.0f, -1.0f);