From e459f0f94b3a06f073993c8bfa2fc47742f96eb1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 13 Sep 2023 14:41:01 -0700 Subject: [PATCH] core: do not do emoji font fallback on Linux Our font discovery mechanism is capable of finding this. --- src/Surface.zig | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 6b53b07a0..01cbafb89 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -297,19 +297,6 @@ pub fn init( // Auto-italicize if we have to. try group.italicize(); - // Emoji fallback. We don't include this on Mac since Mac is expected - // to always have the Apple Emoji available. - if (builtin.os.tag != .macos or font.Discover == void) { - _ = try group.addFace( - .regular, - .{ .loaded = try font.Face.init(font_lib, face_emoji_ttf, font_size) }, - ); - _ = try group.addFace( - .regular, - .{ .loaded = try font.Face.init(font_lib, face_emoji_text_ttf, font_size) }, - ); - } - // 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| {