diff --git a/res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2 b/res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2 deleted file mode 100644 index db8ee47729..0000000000 Binary files a/res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2 and /dev/null differ diff --git a/src/utils/FontManager.js b/src/utils/FontManager.js index a7d33401eb..c89d43cb3f 100644 --- a/src/utils/FontManager.js +++ b/src/utils/FontManager.js @@ -75,15 +75,11 @@ export async function fixupColorFonts() { return; } - // we programatically add the right fontface. - let font; if (await isColrFontSupported()) { - font = new FontFace("Twemoji", + const font = new FontFace("Twemoji", `url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2")}')`, {}); - } else { - font = new FontFace("Twemoji", - `url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.woff2")}')`, {}); + document.fonts.add(font); } - document.fonts.add(font); + // if not supported, the browser will fall back to one of the native fonts specified. }