astro-fonts-next
astro-fonts-next copied to clipboard
Add google font subset support
Hi! 👋🏻 Is it possible to add Google Fonts subsets? Example can be seen here: https://css-tricks.com/google-fonts-and-font-display/
With this: <link href="https://fonts.googleapis.com/css2?family=Nabla&display=swap&text=kisu"
, we should only download 4 characters as shown below (rather than the whole font).
Currently, it download everything and is quite heavy. 😅
@kissu
Comparing the pattern with and without the text parameter, it appears that the css size is lower for the pattern with the text parameter than for the pattern without!
I verified the following URL in my browser https://fonts.googleapis.com/css2?family=Nabla&display=swap&text=kisu https://fonts.googleapis.com/css2?family=Nabla&display=swap
As far as KISSU has confirmed, are they both the same size?