mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-19 08:35:46 +01:00
Remove accidental changes to macos/text/run.ig
This commit is contained in:
@@ -106,19 +106,6 @@ pub const Run = opaque {
|
||||
pub fn getStatus(self: *Run) Status {
|
||||
return @bitCast(c.CTRunGetStatus(@ptrCast(self)));
|
||||
}
|
||||
|
||||
pub fn getAttributes(self: *Run) *foundation.Dictionary {
|
||||
return @ptrCast(@constCast(c.CTRunGetAttributes(@ptrCast(self))));
|
||||
}
|
||||
|
||||
pub fn getFont(self: *Run) ?*text.Font {
|
||||
const attrs = self.getAttributes();
|
||||
const font_ptr = attrs.getValue(*const anyopaque, c.kCTFontAttributeName);
|
||||
if (font_ptr) |ptr| {
|
||||
return @ptrCast(@constCast(ptr));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
/// https://developer.apple.com/documentation/coretext/ctrunstatus?language=objc
|
||||
|
||||
Reference in New Issue
Block a user