mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-02 11:32:39 +00:00
font: coretext calculate cell metrics
This commit is contained in:
@@ -23,6 +23,10 @@ pub const String = opaque {
|
||||
c.CFRelease(self);
|
||||
}
|
||||
|
||||
pub fn getLength(self: *String) usize {
|
||||
return @intCast(usize, c.CFStringGetLength(@ptrCast(c.CFStringRef, self)));
|
||||
}
|
||||
|
||||
pub fn hasPrefix(self: *String, prefix: *String) bool {
|
||||
return c.CFStringHasPrefix(
|
||||
@ptrCast(c.CFStringRef, self),
|
||||
|
||||
Reference in New Issue
Block a user