如何使 @font-face 中的 unicode-range 仅加载拉丁字符? (css)
How do I make the unicode-range in @font-face for only load Latin characters? (css)
我在网站上只使用 拉丁范围字符,但在我的 woff2/ttf 中还有许多其他类型的字符,例如 Š Č â...如何使用 unicode-range
- @font-face
设置 仅拉丁字符 的特定范围?
因为目的是减轻完整字体的下载,所以 unicode-range 将无济于事。
见MDN
The unicode-range CSS descriptor sets the specific range of characters to be used from a font defined by @font-face and made available for use on the current page. If the page doesn't use any character in this range, the font is not downloaded; if it uses at least one, the whole font is downloaded.
唯一的出路似乎是仅使用所需字符创建另一种字体。
我在网站上只使用 拉丁范围字符,但在我的 woff2/ttf 中还有许多其他类型的字符,例如 Š Č â...如何使用 unicode-range
- @font-face
设置 仅拉丁字符 的特定范围?
因为目的是减轻完整字体的下载,所以 unicode-range 将无济于事。
见MDN
The unicode-range CSS descriptor sets the specific range of characters to be used from a font defined by @font-face and made available for use on the current page. If the page doesn't use any character in this range, the font is not downloaded; if it uses at least one, the whole font is downloaded.
唯一的出路似乎是仅使用所需字符创建另一种字体。