In the rare case that you need to import a specific subset of a font, you can do so by importing the subset’s CSS file. For example, if you only need the
latinsubset of the
Open Sansfont, you can import the
This is not available for variable fonts.
Note: We do not recommend using this method unless you have a specific reason to do so. The default CSS utilises the
unicode-rangeproperty to only load the characters that are used on the page, which is more efficient than manually loading subsets.
Due to NPM package size limitations, the following packages do not support this feature: