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 nowpull/8164/head
parent
eb96ff0757
commit
f107b2f910
|
|
@ -1833,7 +1833,10 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
|
||||||
grid_ptr.* = try .init(alloc, .{ .collection = c });
|
grid_ptr.* = try .init(alloc, .{ .collection = c });
|
||||||
errdefer grid_ptr.*.deinit(alloc);
|
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();
|
errdefer shaper.deinit();
|
||||||
|
|
||||||
return TestShaper{
|
return TestShaper{
|
||||||
|
|
|
||||||
|
|
@ -1296,7 +1296,10 @@ fn testShaperWithFont(alloc: Allocator, font_req: TestFont) !TestShaper {
|
||||||
grid_ptr.* = try .init(alloc, .{ .collection = c });
|
grid_ptr.* = try .init(alloc, .{ .collection = c });
|
||||||
errdefer grid_ptr.*.deinit(alloc);
|
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();
|
errdefer shaper.deinit();
|
||||||
|
|
||||||
return TestShaper{
|
return TestShaper{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue