Nes.css: Suggestion: remove font import

Created on 29 Nov 2018  路  9Comments  路  Source: nostalgic-css/NES.css

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.

released

Most helpful comment

@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:

Usage

This 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>

All 9 comments

I was thinking the same thing as you, because I'm a Japanese font user, so Press Start 2P is not enough馃憤

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鈥檚 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:

Usage

This 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>

@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:

Usage

This 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. :+1:

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 :100:

:tada: This issue has been resolved in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evexoio picture evexoio  路  5Comments

YuK1Game picture YuK1Game  路  6Comments

alexd99 picture alexd99  路  3Comments

HiKaylum picture HiKaylum  路  4Comments

lucasjs picture lucasjs  路  4Comments