-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Suggestion: remove font import #34
Comments
I was thinking the same thing as you, because I'm a Japanese font user, so |
AFAIK Google even offers CDN imports for fonts.
Personally, I am against removing the import. For people who just want to use this for a fun little site, that may just have learned HTML for instance, this could lead to some unintended confusion. But, that’s just my two cents on this.
|
@IngwiePhoenix sure, but then you remove the ability to load fonts async for users that want to do that. And for users that are already loading other Google fonts on their site, they will have to make two requests instead of one. I think the unintended confusion could be mitigated with decent documentation. Something like: UsageThis framework depends on the google font Press Start 2P. You can include it on your website like below. <head>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link href="path/to/Nes.css" rel="stylesheet">
</head> |
I agree, this makes the documentation more informative and declarative while loosely coupling the distribution of the font from the framework. 👍 |
damn it, again google. thx for opening the issue :/ |
I can spin up a PR if there is some consensus here 😄 |
@montezume I think you may :) Go for it. |
Looks solid to me 💯 |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
ref
It would be nice if it was the responsibility of the consumer of the library to import the required Google Font.
I would suggest leaving out the import, and updating the documentation to reflect the fact that the user should install the font themselves.
The text was updated successfully, but these errors were encountered: