You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selective importing of font variants can significantly reduce the final app size. For instance, for the highly popular Inter font family, the app size can be reduced from 2.8MB to as little as 320kb for a single font variant.
I can look into the PR if you find this issue relevant.
The text was updated successfully, but these errors were encountered:
I really love how easy it is to use fonts in this package. It is much faster and less error-prone than manually downloading and loading fonts.
Problem
The final bundle size is too big and contains all the variants of the selected font, even if only a few variants are used in the app.
Proposal
Split the module into multiple submodules for each font variant individually. This approach ensures not all the fonts are imported.
This is how the fonts are currently included:
I propose allowing the import of font variants from submodules as well, as follows:
Benefits
Selective importing of font variants can significantly reduce the final app size. For instance, for the highly popular Inter font family, the app size can be reduced from 2.8MB to as little as 320kb for a single font variant.
I can look into the PR if you find this issue relevant.
The text was updated successfully, but these errors were encountered: