From 3b9bb7b2d2b955b482476d949fb5e3594b3642dd Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 Nov 2023 15:21:24 -0800 Subject: [PATCH] zulip-icons: Use WOFF2 format for icon font. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’re currently generating the icon font in five formats: Embedded OpenType, WOFF, WOFF2, TrueType, and SVG. But they’re misordered by webfonts-loader such that modern browsers always select the WOFF version. WOFF2 is supported by all modern browsers, so just use that exclusively. Signed-off-by: Anders Kaseorg --- web/images/icons/zulip-icons.font.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/images/icons/zulip-icons.font.js b/web/images/icons/zulip-icons.font.js index a92f98e15c..0f694fd28c 100644 --- a/web/images/icons/zulip-icons.font.js +++ b/web/images/icons/zulip-icons.font.js @@ -12,4 +12,5 @@ module.exports = { baseSelector: ".zulip-icon", cssTemplate: "./template.hbs", ligature: false, + types: ["woff2"], // https://github.com/jeerbl/webfonts-loader/pull/219 };