ghostty/pkg/macos/text/stylized_strings.zig
Mitchell Hashimoto 56f8e39e5b Update zig, mach, fmt
2023-06-25 11:08:20 -07:00

13 lines
325 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(*foundation.String, @intFromPtr(switch (self) {
.font => c.kCTFontAttributeName,
}));
}
};