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

Update Lato fonts on desktop #4245

Closed
wants to merge 2 commits into from
Closed

Update Lato fonts on desktop #4245

wants to merge 2 commits into from

Conversation

chromakode
Copy link
Contributor

Ran into some really weird behavior in textareas: a blank line was measuring vertical height differently from a line containing a character. I recalled that Lato got a big update a while back, including more glyphs and some fixes to the metrics.

Replacing our current Lato fonts with the updated version fixed the weird behavior I was seeing, as well as adds a few nice things:

Ligatures!
screen shot 2016-09-09 at 2 19 09 pm

Better strikeout!
(before) screen shot 2016-09-09 at 2 21 16 pm
(after) screen shot 2016-09-09 at 2 20 57 pm

I've looked into the impact of this by performing a local visdiff run and the effect appears very minor. The biggest change I noticed was a vertical alignment change on the "New private folder" button in the menubar, which I was able to fix by removing a line-height: 0 hack 👍

Intentionally not updating mobile here, because there were different font glitches that were a concern. If this works well we can revisit on mobile and give it a detailed look.

👓 @keybase/react-hackers

These newer files don't have a line-height issue where an empty line
measures shorter than a line with a character in it.
With updated Lato fonts, this isn't necessary.
@chromakode
Copy link
Contributor Author

Update: Marco pointed out that these fonts get included on mobile too. I'll look into whether this introduces visual issues on that side.

@chromakode
Copy link
Contributor Author

Arggghh, it appears that using FontSquirrel w/ "Auto-Adjust Vertical Metrics" causes the empty line sizing issue 😢

@chromakode
Copy link
Contributor Author

chromakode commented Sep 15, 2016

Update: I'm seeing some native differences, but this may be because the lineHeight property we pass to RN is handled differently in iOS vs. Android. The font itself may be ok...

facebook/react-native#2991

@chromakode
Copy link
Contributor Author

chromakode commented Sep 15, 2016

RN 0.33 fixes the line-height issue. We should revisit this once we're upgraded.

@chromakode
Copy link
Contributor Author

Closing since we'll be updating fonts in another PR soon.

@chromakode chromakode closed this Oct 11, 2016
@chromakode chromakode deleted the mgood/update-lato branch October 11, 2016 18:05
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

Successfully merging this pull request may close these issues.

1 participant