From aaa0d46b5d221408d1a36ca796243ab9c28ba8ca Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 5 Dec 2022 20:37:17 -0800 Subject: [PATCH] font: web canvas doesn't support discovery --- src/font/discovery.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/font/discovery.zig b/src/font/discovery.zig index eefb857b3..25d4a318c 100644 --- a/src/font/discovery.zig +++ b/src/font/discovery.zig @@ -10,9 +10,10 @@ const log = std.log.scoped(.discovery); /// Discover implementation for the compile options. pub const Discover = switch (options.backend) { + .freetype => void, // no discovery .fontconfig_freetype => Fontconfig, - .coretext => CoreText, - else => void, + .coretext, .coretext_freetype => CoreText, + .web_canvas => void, // no discovery }; /// Descriptor is used to search for fonts. The only required field