font: SharedGridSet works without font discovery

This commit is contained in:
Mitchell Hashimoto
2024-05-08 18:24:55 -07:00
parent 995f39314d
commit 435bd32cfd

View File

@ -233,7 +233,7 @@ fn collection(
// people add other emoji fonts to their system, we always want to // people add other emoji fonts to their system, we always want to
// prefer the official one. Users can override this by explicitly // prefer the official one. Users can override this by explicitly
// specifying a font-family for emoji. // specifying a font-family for emoji.
if (comptime builtin.target.isDarwin()) apple_emoji: { if (comptime builtin.target.isDarwin() and Discover != void) apple_emoji: {
const disco = try self.discover() orelse break :apple_emoji; const disco = try self.discover() orelse break :apple_emoji;
var disco_it = try disco.discover(self.alloc, .{ var disco_it = try disco.discover(self.alloc, .{
.family = "Apple Color Emoji", .family = "Apple Color Emoji",