[cairo-commit] src/cairo-atsui-font.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Dec 16 12:41:13 PST 2006


 src/cairo-atsui-font.c |    4 ++++
 1 files changed, 4 insertions(+)

New commits:
diff-tree bf1c2ef1e2b6cffffb0f02fe5cb8df0728026642 (from 4c95e2b7bf15c2c12498ae07a16d95ae98501431)
Author: Brian Ewins <Brian.Ewins at gmail.com>
Date:   Sat Dec 16 15:40:21 2006 -0500

    [ATSUI] Support disabling antialiased text

diff --git a/src/cairo-atsui-font.c b/src/cairo-atsui-font.c
index 2927caa..d345ebc 100644
--- a/src/cairo-atsui-font.c
+++ b/src/cairo-atsui-font.c
@@ -656,6 +656,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);
 


More information about the cairo-commit mailing list