mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-20 07:08:40 +03:00

* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
13 lines
305 B
Zig
13 lines
305 B
Zig
const foundation = @import("../foundation.zig");
|
|
const c = @import("c.zig");
|
|
|
|
pub const StringAttribute = enum {
|
|
font,
|
|
|
|
pub fn key(self: StringAttribute) *foundation.String {
|
|
return @ptrFromInt(@intFromPtr(switch (self) {
|
|
.font => c.kCTFontAttributeName,
|
|
}));
|
|
}
|
|
};
|