From 1364625a48a2c58d269bec34f125f64ae7d2b3d8 Mon Sep 17 00:00:00 2001 From: Robert Lord Date: Sun, 31 Oct 2021 13:38:59 -0500 Subject: [PATCH] always disable font smoothing when creating a CoreGraphicsContext --- piet-coregraphics/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/piet-coregraphics/src/lib.rs b/piet-coregraphics/src/lib.rs index c8472214..19953927 100644 --- a/piet-coregraphics/src/lib.rs +++ b/piet-coregraphics/src/lib.rs @@ -87,6 +87,7 @@ impl<'a> CoreGraphicsContext<'a> { text: Option, ) -> CoreGraphicsContext { ctx.save(); + ctx.set_allows_font_smoothing(false); if let Some(height) = height { let xform = Affine::FLIP_Y * Affine::translate((0.0, -height)); ctx.concat_ctm(to_cgaffine(xform));