Skip to content

The Lato font is imported twice #590

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

Closed
stof opened this issue Jun 14, 2017 · 4 comments
Closed

The Lato font is imported twice #590

stof opened this issue Jun 14, 2017 · 4 comments

Comments

@stof
Copy link
Member

stof commented Jun 14, 2017

the resulting CSS loads Lato twice (and with different weights being loaded btw):

  • we load the font explicitly from a local install, using the lato-font npm package
  • bootswatch loads the font by adding a @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic) in the CSS
@javiereguiluz
Copy link
Member

If someone provides a solution for this, please remember that the app must work when you don't have an Internet connection, so we can't rely on Google's web fonts only. Thanks.

@stof
Copy link
Member Author

stof commented Jun 14, 2017

Yeah, I would favor avoiding the @import rule, but I don't know how to avoid this output from bootswatch without altering the bootswatch source (which is a no-go as we install it from npm)

@javiereguiluz
Copy link
Member

This StackOVerflow question could help us here:

The latest Bootswatch versions (> 3.3.6.1) introduce a SASS variable $web-font-path that you can override and set to an empty value:

$web-font-path: '';

@javiereguiluz
Copy link
Member

Closing it as fixed by #605.

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

2 participants