font: specific codepoint lookup in internals

This commit is contained in:
Mitchell Hashimoto
2022-11-17 15:49:14 -08:00
parent b91cd8e41c
commit da2942e083
7 changed files with 136 additions and 27 deletions

View File

@@ -189,7 +189,7 @@ pub fn create(alloc: Allocator, app: *App, config: *const Config) !*Window {
});
defer disco_it.deinit();
if (try disco_it.next()) |face| {
log.debug("font regular: {s}", .{try face.name()});
log.info("font regular: {s}", .{try face.name()});
try group.addFace(alloc, .regular, face);
}
}
@@ -201,7 +201,7 @@ pub fn create(alloc: Allocator, app: *App, config: *const Config) !*Window {
});
defer disco_it.deinit();
if (try disco_it.next()) |face| {
log.debug("font bold: {s}", .{try face.name()});
log.info("font bold: {s}", .{try face.name()});
try group.addFace(alloc, .bold, face);
}
}
@@ -213,7 +213,7 @@ pub fn create(alloc: Allocator, app: *App, config: *const Config) !*Window {
});
defer disco_it.deinit();
if (try disco_it.next()) |face| {
log.debug("font italic: {s}", .{try face.name()});
log.info("font italic: {s}", .{try face.name()});
try group.addFace(alloc, .italic, face);
}
}
@@ -226,7 +226,7 @@ pub fn create(alloc: Allocator, app: *App, config: *const Config) !*Window {
});
defer disco_it.deinit();
if (try disco_it.next()) |face| {
log.debug("font bold+italic: {s}", .{try face.name()});
log.info("font bold+italic: {s}", .{try face.name()});
try group.addFace(alloc, .bold_italic, face);
}
}