Merge branch 'subpixel' of https://github.com/lxcode/kitty
This commit is contained in:
commit
d900811a7b
@ -245,6 +245,8 @@ render_char(Face *self, PyObject *args) {
|
|||||||
if (ctx == NULL) { PyErr_SetString(PyExc_ValueError, "Failed to create bitmap context"); goto end; }
|
if (ctx == NULL) { PyErr_SetString(PyExc_ValueError, "Failed to create bitmap context"); goto end; }
|
||||||
CGContextSetShouldAntialias(ctx, true);
|
CGContextSetShouldAntialias(ctx, true);
|
||||||
CGContextSetShouldSmoothFonts(ctx, true); // sub-pixel antialias
|
CGContextSetShouldSmoothFonts(ctx, true); // sub-pixel antialias
|
||||||
|
CGContextSetShouldSubpixelQuantizeFonts(ctx, true);
|
||||||
|
CGContextSetShouldSubpixelPositionFonts(ctx, true);
|
||||||
CGContextSetRGBFillColor(ctx, 1, 1, 1, 1); // white glyphs
|
CGContextSetRGBFillColor(ctx, 1, 1, 1, 1); // white glyphs
|
||||||
CGAffineTransform transform = CGAffineTransformIdentity;
|
CGAffineTransform transform = CGAffineTransformIdentity;
|
||||||
CGContextSetTextDrawingMode(ctx, kCGTextFill);
|
CGContextSetTextDrawingMode(ctx, kCGTextFill);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user