-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Return to using Fira Code as the default monospace font #31302
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
Conversation
because Inconsolata lacks Box Drawings and Geometric Shapes glyphs. Fixes #31289 Partially reverts matrix-org/matrix-react-sdk#3008
|
(i've set a full playwright screenshot update going overnight) |
t3chguy
left a comment
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.
Is the font size increasing substantially expected?
yes, pretty much; unintuitively there's no real guarantee that two fonts have similar physical sizing at the same point size. That said, I can't quite decide whether this is a feature or a bug - i.e. are we just used to Inconsolata being smaller. I agree it jars a bit (and the reason I moved away from Fira in 2019 was because it was a bit ugly due to the size and the @ symbols); I'll experiment with some alternatives. In other news, just how flakey should the playwright snapshot tests be? All sorts of unrelated screens claim to have changed due to this. |
|
ftr, I think the choice of monospace fonts on Google Fonts with suitable licenses and fuller unicode support here are:
|
They are mostly stable, some known issues were recently fixed around map rendering, some others may still lurk. https://e2e-31302--matrix-react-sdk.netlify.app/#?testId=8dfc0d81b54fac499770-4911a8c051239e1a3ae6&q=s:failed & https://e2e-31302--matrix-react-sdk.netlify.app/#?testId=a5a7240da5001bef4375-5678fb9e8a8d87cadd6d&q=s:failed both look to be related to the effective monospace font size change |
|
So in terms of choices: Honestly, they're all pretty similar... other than Inconsolata which is more condensed than the rest. So I vote we go with Fira Code (which was commissioned by Mozilla, as opposed to the others which come from Google/MSFT/Jetbrains), and if necessary bump the font size down by 1 point for multiline code blocks? ftr, switching fonts around here is a matter of: |
this was pissing me off, so i've tried #31364 |





Return to using Fira Code as the default monospace font, because Inconsolata lacks Box Drawings and Geometric Shapes glyphs.
Fixes #31289
Partially reverts matrix-org/matrix-react-sdk#3008
Provides a different solution to #9765