pkg/macos: implement CTRun

This commit is contained in:
Mitchell Hashimoto
2023-12-11 09:23:40 -08:00
parent 554d2d0185
commit ff68c56268
3 changed files with 67 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ pub const Line = opaque {
leading,
);
}
pub fn getGlyphRuns(self: *Line) *foundation.Array {
return @ptrCast(c.CTLineGetGlyphRuns(@ptrCast(self)));
}
};
pub const LineBoundsOptions = packed struct {