Replies: 3 comments
-
+1 on this request. For security reasons it's very important for our use case to make use of the disambiguation capability in Inter. Without this, characters such as 1, i, and l can appear similar. More details here: https://rsms.me/inter/#features/ss02 |
Beta Was this translation helpful? Give feedback.
-
I think you have to self-host fonts here, as I don't think the Inter version hosted on Google Fonts support those features. You can try it by using Google's font file directly e.g. /* Taken from the CSS file returned by Google Fonts */
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff)
format("woff");
font-feature-settings: "ss02";
} and you will notice that the feature doesn't work. If you self-host the font by downloading from https://rsms.me directly, you can then use const inter = localFont({
src: [...],
display: "swap",
declarations: [{ prop: "font-feature-settings", value: "ss02" }],
variable: "--sans",
}); |
Beta Was this translation helpful? Give feedback.
-
@joulev's advice worked for me. I had to download the font and then load it as a local font. However, the It's really weird to me that almost nowhere are these features acknowledged or displayed. I only found out they existed from playing around in Figma. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Requesting this issue be reopened - #41862
Beta Was this translation helpful? Give feedback.
All reactions