diff --git a/pkg/macos/graphics/context.zig b/pkg/macos/graphics/context.zig index be93546f2..7efa754b8 100644 --- a/pkg/macos/graphics/context.zig +++ b/pkg/macos/graphics/context.zig @@ -19,6 +19,13 @@ pub fn Context(comptime T: type) type { ); } + pub fn setAllowsAntialiasing(self: *T, v: bool) void { + c.CGContextSetAllowsAntialiasing( + @ptrCast(c.CGContextRef, self), + v, + ); + } + pub fn setShouldAntialias(self: *T, v: bool) void { c.CGContextSetShouldAntialias( @ptrCast(c.CGContextRef, self), diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index 756e3a54e..d3dd7b644 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -139,6 +139,7 @@ pub const Face = struct { ); defer ctx.release(); + ctx.setAllowsAntialiasing(false); ctx.setShouldAntialias(false); ctx.setShouldSmoothFonts(false); ctx.setGrayFillColor(1, 1);