font/coretext: score discovered fonts

This commit is contained in:
Mitchell Hashimoto
2023-10-03 09:17:41 -07:00
parent fda56fd11f
commit 1127330b3a
8 changed files with 115 additions and 24 deletions

View File

@@ -85,7 +85,7 @@ fn runArgs(alloc_gpa: Allocator, argsIter: anytype) !u8 {
// Look up all available fonts
var disco = font.Discover.init();
defer disco.deinit();
var disco_it = try disco.discover(.{
var disco_it = try disco.discover(alloc, .{
.family = config.family,
.style = config.style,
.bold = config.bold,