mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-04 17:06:33 +00:00
coretext: rasterization looking cleaner
This commit is contained in:
@@ -26,6 +26,27 @@ pub fn Context(comptime T: type) type {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setAllowsFontSmoothing(self: *T, v: bool) void {
|
||||
c.CGContextSetAllowsFontSmoothing(
|
||||
@ptrCast(self),
|
||||
v,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setAllowsFontSubpixelPositioning(self: *T, v: bool) void {
|
||||
c.CGContextSetAllowsFontSubpixelPositioning(
|
||||
@ptrCast(self),
|
||||
v,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setAllowsFontSubpixelQuantization(self: *T, v: bool) void {
|
||||
c.CGContextSetAllowsFontSubpixelQuantization(
|
||||
@ptrCast(self),
|
||||
v,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setShouldAntialias(self: *T, v: bool) void {
|
||||
c.CGContextSetShouldAntialias(
|
||||
@ptrCast(self),
|
||||
@@ -40,6 +61,20 @@ pub fn Context(comptime T: type) type {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setShouldSubpixelPositionFonts(self: *T, v: bool) void {
|
||||
c.CGContextSetShouldSubpixelPositionFonts(
|
||||
@ptrCast(self),
|
||||
v,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setShouldSubpixelQuantizeFonts(self: *T, v: bool) void {
|
||||
c.CGContextSetShouldSubpixelQuantizeFonts(
|
||||
@ptrCast(self),
|
||||
v,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setGrayFillColor(self: *T, gray: f64, alpha: f64) void {
|
||||
c.CGContextSetGrayFillColor(
|
||||
@ptrCast(self),
|
||||
|
Reference in New Issue
Block a user