mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-24 05:40:40 +00:00
font/{harfbuzz,coretext}: enable dlig for test shaper
Some of the tests rely on dlig and I'm far too lazy to rewrite those tests now
This commit is contained in:
@@ -1833,7 +1833,10 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
|
||||
grid_ptr.* = try .init(alloc, .{ .collection = c });
|
||||
errdefer grid_ptr.*.deinit(alloc);
|
||||
|
||||
var shaper = try Shaper.init(alloc, .{});
|
||||
var shaper = try Shaper.init(alloc, .{
|
||||
// Some of our tests rely on dlig being enabled by default
|
||||
.features = &.{"dlig"},
|
||||
});
|
||||
errdefer shaper.deinit();
|
||||
|
||||
return TestShaper{
|
||||
|
||||
@@ -1296,7 +1296,10 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
|
||||
grid_ptr.* = try .init(alloc, .{ .collection = c });
|
||||
errdefer grid_ptr.*.deinit(alloc);
|
||||
|
||||
var shaper = try Shaper.init(alloc, .{});
|
||||
var shaper = try Shaper.init(alloc, .{
|
||||
// Some of our tests rely on dlig being enabled by default
|
||||
.features = &.{"dlig"},
|
||||
});
|
||||
errdefer shaper.deinit();
|
||||
|
||||
return TestShaper{
|
||||
|
||||
Reference in New Issue
Block a user