mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-24 16:11:43 +00:00
font: handle missing CoreText display names
CTFontCopyDisplayName can return null.
This commit is contained in:
@@ -156,7 +156,7 @@ pub const Font = opaque {
|
||||
return @ptrFromInt(@intFromPtr(c.CTFontCopyFamilyName(@ptrCast(self))));
|
||||
}
|
||||
|
||||
pub fn copyDisplayName(self: *Font) *foundation.String {
|
||||
pub fn copyDisplayName(self: *Font) ?*foundation.String {
|
||||
return @ptrFromInt(@intFromPtr(c.CTFontCopyDisplayName(@ptrCast(self))));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user