From 41dd733ca7123c9ac4bfc6c781697a660e95b052 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sat, 4 Apr 2026 19:22:04 +0300 Subject: feat: finish ghostty pane backend integration --- vendor/libghostty-vt/pkg/macos/text/stylized_strings.zig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vendor/libghostty-vt/pkg/macos/text/stylized_strings.zig (limited to 'vendor/libghostty-vt/pkg/macos/text/stylized_strings.zig') diff --git a/vendor/libghostty-vt/pkg/macos/text/stylized_strings.zig b/vendor/libghostty-vt/pkg/macos/text/stylized_strings.zig new file mode 100644 index 00000000..8e262f9a --- /dev/null +++ b/vendor/libghostty-vt/pkg/macos/text/stylized_strings.zig @@ -0,0 +1,16 @@ +const foundation = @import("../foundation.zig"); +const c = @import("c.zig").c; + +pub const StringAttribute = enum { + font, + paragraph_style, + writing_direction, + + pub fn key(self: StringAttribute) *foundation.String { + return @ptrFromInt(@intFromPtr(switch (self) { + .font => c.kCTFontAttributeName, + .paragraph_style => c.kCTParagraphStyleAttributeName, + .writing_direction => c.kCTWritingDirectionAttributeName, + })); + } +}; -- cgit v1.2.3