mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
font: coretext calculate cell metrics
This commit is contained in:
@@ -20,6 +20,10 @@ pub const Rect = extern struct {
|
||||
pub fn cval(self: Rect) c.struct_CGRect {
|
||||
return @bitCast(c.struct_CGRect, self);
|
||||
}
|
||||
|
||||
pub fn isNull(self: Rect) bool {
|
||||
return c.CGRectIsNull(self.cval());
|
||||
}
|
||||
};
|
||||
|
||||
pub const Size = extern struct {
|
||||
|
||||
Reference in New Issue
Block a user