Skip to content

Inter var file containing only the needed font weight range? #449

Answered by ThomasRettig
Nemmcy asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You can use a variable font subsetting tool to extract only the necessary range. Personally I find Slice GUI quite good. To "compress" the font further, you might want to look into character subsetting. I use FontTools to do this. There’s also a helpful article that shows you how to use it.
  2. Unfortunately, I am not aware of a website similiar to the one you mentioned.

You also mention:

Ensure text remains visible during webfont load. Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading.
=> ./fonts/Inter-roman.var.woff2 (min 150ms, FCP and LCP increase)

This is a simple fix—use the CSS font-display: swap declaration in your @font-face, like so:

@…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rsms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants