Skip to content

how to import all size from one font (noto-sans-sc) at once #227

Answered by ayuhito
aboveyunhai asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @aboveyunhai,

import "@fontsource/raleway/variable.css"; is part of the variable font specification which is only supported by a limited number of fonts. This does not include noto-sans-sc.

We split it by weight to ensure you're only loading CSS that you need and nothing unnecessary. It only needs to be imported once in _document.tsx after all and Webpack will handle the rest. :)

Replies: 2 comments

This comment was marked as off-topic.

Comment options

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

This discussion was converted from issue #226 on May 20, 2021 09:44.