diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/font/Collection.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/font/Collection.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/font/Collection.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/libghostty-vt/src/font/Collection.zig b/vendor/libghostty-vt/src/font/Collection.zig index 5d7bfa51..6c646d9f 100644 --- a/vendor/libghostty-vt/src/font/Collection.zig +++ b/vendor/libghostty-vt/src/font/Collection.zig @@ -28,6 +28,7 @@ const Library = font.Library; const Metrics = font.Metrics; const Presentation = font.Presentation; const Style = font.Style; +const SegmentedList = @import("../datastruct/segmented_list.zig").SegmentedList; const log = std.log.scoped(.font_collection); @@ -662,7 +663,7 @@ fn scaleFactor( return primary_metric / face_metric; } -const UpdateMetricsError = error{ +pub const UpdateMetricsError = error{ CannotLoadPrimaryFont, }; @@ -694,7 +695,7 @@ pub fn updateMetrics(self: *Collection) UpdateMetricsError!void { /// /// WARNING: We cannot use any prealloc yet for the segmented list because /// the collection is copied around by value and pointers aren't stable. -const StyleArray = std.EnumArray(Style, std.SegmentedList(EntryOrAlias, 0)); +const StyleArray = std.EnumArray(Style, SegmentedList(EntryOrAlias, 0)); /// Load options are used to configure all the details a Collection /// needs to load deferred faces. @@ -894,7 +895,7 @@ pub const Index = packed struct(Index.Backing) { /// The number of bits we use for the index. const idx_bits = backing_bits - @typeInfo(@typeInfo(Style).@"enum".tag_type).int.bits; - pub const IndexInt = @Type(.{ .int = .{ .signedness = .unsigned, .bits = idx_bits } }); + pub const IndexInt = @Int(.unsigned, idx_bits); /// The special-case fonts that we support. pub const Special = enum(IndexInt) { |
