Remove accidental changes to macos/text/run.ig

pull/9883/head
Jacob Sandlund 2025-12-11 09:35:40 -05:00
parent 942f326c58
commit f4560390d7
1 changed files with 0 additions and 13 deletions

View File

@ -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