Update font format from 'ttf' to 'truetype' (#32493)

As per css docs `ttf` isn't a valid format specifier. Instead, for '.ttf' fonts you need to use `truetype`.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@supports#font-format
This commit is contained in:
Ally Robinson
2026-02-13 08:58:42 -05:00
committed by GitHub
parent d684945877
commit 2ff5183806

View File

@@ -39,7 +39,7 @@ e.g. in config.json:
"faces": [
{
"font-family": "Inter",
"src": [{"url": "/fonts/Inter.ttf", "format": "ttf"}]
"src": [{"url": "/fonts/Inter.ttf", "format": "truetype"}]
}
],
"general": "Inter, sans",