From 5e75752d7d82b8493fbfd809e78e79dbd8b76a3d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 13 Sep 2023 14:42:56 -0700 Subject: [PATCH] core: do not preload Apple Emoji, our fallback search can find it --- src/Surface.zig | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 01cbafb89..83205cb7d 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -297,22 +297,6 @@ pub fn init( // Auto-italicize if we have to. try group.italicize(); - // If we're on Mac, then we try to use the Apple Emoji font for Emoji. - if (builtin.os.tag == .macos and font.Discover != void) { - if (try app.fontDiscover()) |disco| { - var disco_it = try disco.discover(.{ - .family = "Apple Color Emoji", - .size = font_size.points, - }); - defer disco_it.deinit(); - if (try disco_it.next()) |face| { - var name_buf: [256]u8 = undefined; - log.info("font emoji: {s}", .{try face.name(&name_buf)}); - _ = try group.addFace(.regular, .{ .deferred = face }); - } - } - } - break :group group; }); errdefer font_group.deinit(alloc);