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
Yasuhiro Matsumoto 2026-04-24 01:40:01 +09:00
parent fe725b5da1
commit 0343a4d98f
No known key found for this signature in database
GPG Key ID: F2EA90DF2C146D1E
1 changed files with 2 additions and 2 deletions

View File

@ -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()).?;