zulip-icons: Use WOFF2 format for icon font.

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 <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-11-30 15:21:24 -08:00 committed by Tim Abbott
parent 7fad8f1f54
commit 3b9bb7b2d2
1 changed files with 1 additions and 0 deletions

View File

@ -12,4 +12,5 @@ module.exports = {
baseSelector: ".zulip-icon", baseSelector: ".zulip-icon",
cssTemplate: "./template.hbs", cssTemplate: "./template.hbs",
ligature: false, ligature: false,
types: ["woff2"], // https://github.com/jeerbl/webfonts-loader/pull/219
}; };