From c9300650edd7f0a52d99c5f86a30798a0ec4eb41 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 22 May 2019 16:37:52 +0100 Subject: [PATCH] Add browser comment to extra fonts --- src/utils/FontManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/FontManager.js b/src/utils/FontManager.js index 3080526135..b4123c6368 100644 --- a/src/utils/FontManager.js +++ b/src/utils/FontManager.js @@ -79,6 +79,8 @@ export async function fixupColorFonts() { if (await isColrFontSupported()) { const path = `url('${require("../../res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2")}')`; document.fonts.add(new FontFace("Twemoji", path, {})); + // For at least Chrome on Windows 10, we have to explictly add extra + // weights for the emoji to appear in bold messages, etc. document.fonts.add(new FontFace("Twemoji", path, { weight: 600 })); document.fonts.add(new FontFace("Twemoji", path, { weight: 700 })); }