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
Adding &text=<text> to the API call to limit the Roboto Flex glyphs and font file size does not seem to work.
Example:
https://fonts.googleapis.com/css2?family=Roboto+Flex:[email protected] produces the following CSS (only showing Latin):
Adding &text=Hello to the request https://fonts.googleapis.com/css2?family=Roboto+Flex:[email protected]&text=Hello produces the same CSS, and therefore the same font file.
I have checked the downloaded font file for both requests. They are the same size. I would expect the second request to produce a smaller font file.
Also, I have tried the same test with another variable font - Open Sans - and it worked as expected. That is, the second request produced different CSS to the first, and the resulting font file is considerably smaller.
It appears that the Roboto Flex font is ignoring the &text= command.
The text was updated successfully, but these errors were encountered:
graymatter00
changed the title
Using &text=<text> to limit glyphs and file size does not seem to function
Using &text=<text> to limit glyphs and file size does not seem to work
Mar 14, 2023
Adding
&text=<text>
to the API call to limit the Roboto Flex glyphs and font file size does not seem to work.Example:
https://fonts.googleapis.com/css2?family=Roboto+Flex:[email protected]
produces the following CSS (only showing Latin):Adding
&text=Hello
to the requesthttps://fonts.googleapis.com/css2?family=Roboto+Flex:[email protected]&text=Hello
produces the same CSS, and therefore the same font file.I have checked the downloaded font file for both requests. They are the same size. I would expect the second request to produce a smaller font file.
Also, I have tried the same test with another variable font - Open Sans - and it worked as expected. That is, the second request produced different CSS to the first, and the resulting font file is considerably smaller.
It appears that the Roboto Flex font is ignoring the
&text=
command.The text was updated successfully, but these errors were encountered: