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

Font tweaks for electron 9 #10330

Merged
merged 3 commits into from
Aug 6, 2020
Merged

Font tweaks for electron 9 #10330

merged 3 commits into from
Aug 6, 2020

Conversation

niik
Copy link
Member

@niik niik commented Aug 5, 2020

Description

This introduces the same emoji font fallback chain that GitHub.com uses in order to work around the rendering of certain emoji on Windows (see electron/electron#24426).

While we're at it I'm also replacing our system font fallback chain with the new system-ui font-alias that lets us leverage Chromium's logic for determining what the system font is.

Lastly I've updated our monospace font stack to match that of GitHub.com (by adding SFMono-Regular as the highest priority monospace font).

Ideally I would like to use the ui-sans-serif and ui-monospace font aliases but we'll have to wait a while for them to be supported

Screenshots

Note that there's no difference on Windows and the exact before state depends on the fonts installed on the system.

Release notes

Notes: [Improved] Use system monospace font for diffs on macOS

@niik niik requested a review from rafeca August 5, 2020 12:44
Copy link
Contributor

@rafeca rafeca left a comment

Choose a reason for hiding this comment

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

LGTM!

@rafeca rafeca merged commit 8e86d09 into electron-9 Aug 6, 2020
@rafeca rafeca deleted the font-tweaks-for-electron-9 branch August 6, 2020 11:31
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.

2 participants