element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.19k stars 2k forks source link

Change monospace font to better match the new default/normal font … #15077

Open fooness opened 4 years ago

fooness commented 4 years ago

Changing the default font from Nunito to Inter was a very good decision. I highly appreciate that change, thank you.

Please let me propose to also change the monospace font from Inconsolata to Roboto Mono to better match the appearance and style of Inter.

Inconsolata is too narrow to match Inter and the heights (ascenders, descenders, x-height) also do not match …

Screenshot 2020-09-01 at 20 06 17

Roboto Mono matches rather good in both width and all heights (ascenders, descenders, x-height) …

Screenshot 2020-09-01 at 20 03 29
turt2live commented 4 years ago

Related: https://github.com/vector-im/element-web/issues/9807

odiferousmint commented 4 years ago

I personally just set the font to Ubuntu Mono, and I am using size 15.

fooness commented 4 years ago

@odiferousmint You and everyone else can keep on using whichever custom font you/they like, for sure.

Nevertheless, there should be some suitable default monospace font which is matching the default normal font … and, objectively, Inconsolata is not matching Inter.

Personally, I’m not a huge fan of Roboto Mono … but it’s the very best free and open-source match for Inter that I came up with since, well, Inter was first released (initially under a slightly different name) three years ago.

Guanran928 commented 4 months ago

I suggest using JetBrains Mono, GitLab chose to use JetBrains Mono with Inter considering similar x-height.