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

Remove all font files except WOFF #682

Merged
merged 1 commit into from
Oct 9, 2016
Merged

Remove all font files except WOFF #682

merged 1 commit into from
Oct 9, 2016

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Oct 9, 2016

  • EOT fonts are only useful for IE8 where lounge does not work.
  • SVG fonts have been abandoned years ago.
  • TTF fonts removed as WOFF has more global support and covers all the browsers that also support TTF.

WOFF is supported 92% globally (basically everywhere, except for Opera Mini which simply does not support any fonts). WOFF2 is supported 64% globally, pretty much in all latest browsers.

@xPaw xPaw added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Oct 9, 2016
@xPaw xPaw added this to the 2.1.0 milestone Oct 9, 2016
@@ -3,11 +3,8 @@
var fs = require("fs-extra");

var srcDir = "./node_modules/font-awesome/fonts/";
var destDir = "./client/fonts/";
var destDir = "./client/css/fonts/";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xPaw, this was pulled to client/fonts/ on purpose. I believe all fonts should be there instead of client/css/fonts/, but this is also a way to locate the fonts installed by our (up and coming) asset pipeline differently.
What do you think?

@@ -5,7 +5,8 @@ coverage/

# Built assets created at npm install/prepublish time
# See https://docs.npmjs.com/misc/scripts
client/fonts/
client/css/fonts/fontawesome-webfont.woff2
client/css/fonts/fontawesome-webfont.woff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another benefit of putting the installed fonts in client/fonts/ is that we do not have to keep track of the specific file in different configuration/ignore files

@astorije
Copy link
Member

astorije commented Oct 9, 2016

This is great! A couple comments before approving.

@astorije
Copy link
Member

astorije commented Oct 9, 2016

For the record:

+xPaw Astorije, just undo my fontawe move as you commented

@astorije astorije self-assigned this Oct 9, 2016
@astorije astorije merged commit 8a4100c into master Oct 9, 2016
@astorije astorije deleted the xpaw/svg-ttf branch October 9, 2016 19:26
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants