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
Describe the issue
Wondering why a css2 embedded font was lacking certain characters revealed a number of issues with embed documentation and font presentation. For example with this embed code:
a website would not render "→" U+2192. The issues encountered along the chain of trying to debug this:
The font page Gylphs tab seemingly shows the fonts character set, yet it actually shows an arbitrary selection of characters. This is misleading to the point of making the user think the font does not, in fact, include characters not listed here.
The github documentation link on a font page links only to the project website, not the Google fonts repository of the font. To find the actual truth of what characters are currently in the Google fonts version the repository link should be added.
This subset is not readily documented anywhere I could find, other than by intercepting the webfont sent to the browser and inspecting it.
The &text=... parameter could facilitate adding a specific character to the default charset, instead of requiring a full text. e.g. to use Work Sans for normal Latin text setting, but also including "→" the text parameter needs to be explicitly fed a url encoded full Latin charset, e.g. to add "→" (%E2%86%92) to the embed, instead of:
Describe the issue
Wondering why a
css2
embedded font was lacking certain characters revealed a number of issues with embed documentation and font presentation. For example with this embed code:<link href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap">
a website would not render "→"
U+2192
. The issues encountered along the chain of trying to debug this:&text=...
parameter could facilitate adding a specific character to the default charset, instead of requiring a full text. e.g. to use Work Sans for normal Latin text setting, but also including "→" the text parameter needs to be explicitly fed a url encoded full Latin charset, e.g. to add "→" (%E2%86%92) to the embed, instead of:<link href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap&text=ABCDEFGH...........%E2%86%92">
the parameter could support a similar shortform:
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap&additional_text=%E2%86%92">
To Reproduce
See the embed code above.
Expected behavior
A clear documentation that:
The text was updated successfully, but these errors were encountered: