From 81f14edb49151897d4d3bb0f420cc3dd8e52f68d Mon Sep 17 00:00:00 2001 From: lxcode Date: Wed, 1 Nov 2017 15:37:43 -0700 Subject: [PATCH] Enable subpixel quantization and positioning --- kitty/core_text.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/core_text.m b/kitty/core_text.m index 11fc24a6d..2369ab0ef 100644 --- a/kitty/core_text.m +++ b/kitty/core_text.m @@ -245,6 +245,8 @@ render_char(Face *self, PyObject *args) { if (ctx == NULL) { PyErr_SetString(PyExc_ValueError, "Failed to create bitmap context"); goto end; } CGContextSetShouldAntialias(ctx, true); CGContextSetShouldSmoothFonts(ctx, true); // sub-pixel antialias + CGContextSetShouldSubpixelQuantizeFonts(ctx, true); + CGContextSetShouldSubpixelPositionFonts(ctx, true); CGContextSetRGBFillColor(ctx, 1, 1, 1, 1); // white glyphs CGAffineTransform transform = CGAffineTransformIdentity; CGContextSetTextDrawingMode(ctx, kCGTextFill);