-
Notifications
You must be signed in to change notification settings - Fork 654
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
Fixing problem rendering Lato font #3463
Conversation
I haven't done anything yet, this it for discussion. |
Frontend tests were OK 👍 (details) |
var latoCSSUrl = cdb.config.get('assets_url') + '/stylesheets/fonts.css'; | ||
var opts = {}; | ||
|
||
if (customInstall) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom install, onpremise,...
cc @javisantana
Frontend tests were OK 👍 (details) |
Solution itself looks legit, but why is it that the font loading fails when loaded "locally" (CDN?) in the first place? |
I don't get you @viddo sorry. |
Frontend tests were OK 👍 (details) |
I'm personally missing some context here too. As @viddo said, solution looks good, but I'm not sure what the real problem is. |
I find this awesome, good job @xavijam |
Fixing problem rendering Lato font
@alonsogarciapablo We had problems rendering Lato font using it locally, before being loaded, weird characters appeared in the texts with that font applied (unfortunately i don't have an screenshot right now). After checking what we do in CartoDB website, I feel this way is way better, and without forgetting open source and offline users. |
Frontend tests were OK 👍 (details) |
@xavijam I guess you're referring to this: Thanks for the context and the quick fix! |
Yep, that thing :( On 4 May 2015 at 15:26:18, Pablo Alonso (notifications@github.com) wrote: @xavijam I guess you're referring to this: Thanks for the context and the quick fix! — |
We have a really big problem rendering Lato font with our font generated files. So @matallo has suggested to use webfontloader for loading them from Google, and if they aren't loaded, load the local ones (perfect for on-premise case). I feel it is a good option, what do you think?
@CartoDB/frontend
Fixes #3461.