Skip to content
Snippets Groups Projects
Commit efef26d5 authored by George Nachman's avatar George Nachman
Browse files

Only use Atop blend mode for faint text. It breaks subpixel antialiasing

parent df5bce6b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1217,7 +1217,9 @@ typedef struct iTermTextColorContext {
size_t length = numCodes;
[self selectFont:font inContext:ctx];
CGContextSetFillColorSpace(ctx, CGColorGetColorSpace(color));
CGContextSetBlendMode(ctx, kCGBlendModeSourceAtop);
if (CGColorGetAlpha(color) < 1) {
CGContextSetBlendMode(ctx, kCGBlendModeSourceAtop);
}
CGContextSetFillColor(ctx, components);
 
double y = point.y + _cellSize.height + _baselineOffset;
Loading
Loading
@@ -1257,6 +1259,9 @@ typedef struct iTermTextColorContext {
if (useThinStrokes) {
CGContextSetFontSmoothingStyle(ctx, savedFontSmoothingStyle);
}
if (CGColorGetAlpha(color) < 1) {
CGContextSetBlendMode(ctx, kCGBlendModeNormal);
}
 
return length;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment