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

[docs] Improve code font family #35027

Merged

Conversation

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work docs Improvements or additions to the documentation regression A bug, but worse labels Nov 7, 2022
@mui-bot
Copy link

mui-bot commented Nov 7, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35027--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against 321ce89

@siriwatknp
Copy link
Member

No objection from my side (macOS looks fine with the Menlo font), might need another look from @michaldudak or @mnajdova for window users.

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Nov 7, 2022

I have tried Windows on BrowserStack but they only stream with a 1 CSS pixel = 1 physical pixel (not 2) so it looked super blurry, I couldn't really judge. So I picked the font that Next.js uses that triggers on Windows, in lack of a better option, trusting they had designers testing this out. 👍 to check on Linux, iOS, Android what looks best.

Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

LGTM, here are screenshots:

Before:

After:

@hbjORbj hbjORbj merged commit b884b7f into mui:master Nov 7, 2022
@oliviertassinari oliviertassinari deleted the fix-code-font-family-regression branch November 7, 2022 16:14
@oliviertassinari
Copy link
Member Author

oliviertassinari commented Nov 7, 2022

@mnajdova Among the benchmark that I linked on this PR's description, is there one that feels better (easier to read) than the others on Windows? It doesn't look like a step forward on Windows IMHO.

@michaldudak
Copy link
Member

michaldudak commented Nov 8, 2022

Lucida Console is a font used in older (well, ancient ;)) versions of Windows. The one most widely used in code editors on Windows is Consolas (used by default by both VS Code and Visual Studio), followed by Cascadia Mono, more recently introduced by Microsoft.

Before:

After:

I personally like the "before" version more. Plus, it's a bit narrower, reducing the need to scroll horizontally.

@oliviertassinari
Copy link
Member Author

@michaldudak Agree #35053.

the-mgi pushed a commit to the-mgi/material-ui that referenced this pull request Nov 17, 2022
@oliviertassinari oliviertassinari added the scope: docs-infra Specific to the docs-infra product label Nov 21, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation regression A bug, but worse scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants