mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-21 23:05:20 +00:00
coretext: colored glyph rendering
This commit is contained in:
@@ -101,6 +101,16 @@ pub fn Context(comptime T: type) type {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setRGBStrokeColor(self: *T, r: f64, g: f64, b: f64, alpha: f64) void {
|
||||
c.CGContextSetRGBStrokeColor(
|
||||
@ptrCast(self),
|
||||
r,
|
||||
g,
|
||||
b,
|
||||
alpha,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setTextDrawingMode(self: *T, mode: TextDrawingMode) void {
|
||||
c.CGContextSetTextDrawingMode(
|
||||
@ptrCast(self),
|
||||
|
||||
Reference in New Issue
Block a user