can now use -Dfont-backend to choose the font backend to use

This commit is contained in:
Mitchell Hashimoto
2023-03-04 10:50:13 -08:00
parent 4e31f14f7b
commit 06035e2f95
4 changed files with 79 additions and 45 deletions

View File

@@ -129,8 +129,9 @@ pub const GlobalState = struct {
pub fn init(self: *GlobalState) void {
// Output some debug information right away
std.log.info("runtime={}", .{build_config.app_runtime});
std.log.info("font_backend={}", .{build_config.font_backend});
std.log.info("dependency harfbuzz={s}", .{harfbuzz.versionString()});
if (options.fontconfig) {
if (comptime build_config.font_backend.hasFontconfig()) {
std.log.info("dependency fontconfig={d}", .{fontconfig.version()});
}
std.log.info("renderer={}", .{renderer.Renderer});