mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-24 05:40:15 +00:00
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>
This commit is contained in:
@@ -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()).?;
|
||||
|
||||
Reference in New Issue
Block a user