Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test partial font (Google Fonts "text" parameter) #147

Open
nuthinking opened this issue Jul 25, 2020 · 2 comments
Open

Test partial font (Google Fonts "text" parameter) #147

nuthinking opened this issue Jul 25, 2020 · 2 comments

Comments

@nuthinking
Copy link

nuthinking commented Jul 25, 2020

In the documentation it looks like that through the load method it is possible to pass a string to be tested against the loading of the font. Hence in theory it should be possible to load initially a subset of the font and eventually later the whole font and distinguish between them. But while trying it, it doesn't seem to work. Latin strings get the load event regardless if the characters is available. Does load only work with characters ranges and not with specific strings? Thanks!

@nuthinking nuthinking changed the title Differentiate between small sample of the font vs entire font Test availability of specific characters Jul 25, 2020
@nuthinking nuthinking changed the title Test availability of specific characters Test partial font Jul 25, 2020
@nuthinking nuthinking changed the title Test partial font Test partial font (Google "text" parameter) Jul 25, 2020
@nuthinking nuthinking changed the title Test partial font (Google "text" parameter) Test partial font (Google Fonts "text" parameter) Jul 25, 2020
@nuthinking
Copy link
Author

I wonder if the problem is that when passing the text parameter to the Google Fonts API the CSS generated doesn't specify the unicode-range.

@nuthinking
Copy link
Author

Setting the unicode-range doesn't seem to make a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant