font: web canvas doesn't support discovery

This commit is contained in:
Mitchell Hashimoto
2022-12-05 20:37:17 -08:00
parent 5291501251
commit aaa0d46b5d

View File

@ -10,9 +10,10 @@ const log = std.log.scoped(.discovery);
/// Discover implementation for the compile options. /// Discover implementation for the compile options.
pub const Discover = switch (options.backend) { pub const Discover = switch (options.backend) {
.freetype => void, // no discovery
.fontconfig_freetype => Fontconfig, .fontconfig_freetype => Fontconfig,
.coretext => CoreText, .coretext, .coretext_freetype => CoreText,
else => void, .web_canvas => void, // no discovery
}; };
/// Descriptor is used to search for fonts. The only required field /// Descriptor is used to search for fonts. The only required field