-
what is the correct way to host this font on a webserver (for on premise, no outer internet)
thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
From https://rsms.me/inter/#usage: <!-- HTML in your document's head -->
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css"> /* CSS */
:root { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
:root { font-family: 'Inter var', sans-serif; }
} (of course replace rsms.me... with whatever host and location you serve the font files from)
Variable fonts are the smallest; Inter.var.woff2, which you get automatically if you use the above HTML & CSS. This is only true if you use more than one style (one style is e.g. "Bold" or "Thin"), which is the common case. If you only use one style, then leave out the
I assume you mean "variable" here when you say "variant." Yes, that is a key feature of variable fonts — one font file contains all styles, both regular and bold. MDN has a short primer on variable fonts that might give you a good introduction if you'd like to learn more. |
Beta Was this translation helpful? Give feedback.
From https://rsms.me/inter/#usage:
(of course replace rsms.me... with whatever host and location you serve the font files from)
Variable fonts are the smallest; Inter.var.woff2, which you get automatically if you use the above HTML & CSS. This is only true if you use …