address review: update DeferredFace test discover callsites
Two more holdouts in DeferredFace.zig test helpers calling Fontconfig.init / CoreText.init with no args; Nix test CI surfaced them for the fontconfig path. Co-authored-by: Claude <noreply@anthropic.com>pull/12386/head
parent
fe725b5da1
commit
0343a4d98f
|
|
@ -478,7 +478,7 @@ test "fontconfig" {
|
|||
|
||||
// Get a deferred face from fontconfig
|
||||
var def = def: {
|
||||
var fc = discovery.Fontconfig.init();
|
||||
var fc = discovery.Fontconfig.init(lib);
|
||||
defer fc.deinit();
|
||||
var it = try fc.discover(alloc, .{ .family = "monospace", .size = 12 });
|
||||
defer it.deinit();
|
||||
|
|
@ -510,7 +510,7 @@ test "coretext" {
|
|||
|
||||
// Get a deferred face from fontconfig
|
||||
var def = def: {
|
||||
var fc = discovery.CoreText.init();
|
||||
var fc = discovery.CoreText.init(lib);
|
||||
var it = try fc.discover(alloc, .{ .family = "Monaco", .size = 12 });
|
||||
defer it.deinit();
|
||||
break :def (try it.next()).?;
|
||||
|
|
|
|||
Loading…
Reference in New Issue