element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
Apache License 2.0
10.81k stars 1.91k forks source link

Add option to change monospace font #27564

Open Guanran928 opened 3 weeks ago

Guanran928 commented 3 weeks ago

Your use case

Add an option to change the monospace font used in code snippet messages.

Element Web is using Inconsolata for monospace texts, I want to use my system's monospace font for consistency.

It also does not match Inter's x-height very well, see https://github.com/element-hq/element-web/issues/15077: image

Have you considered any alternatives?

No response

Additional context

Currently there an option for sans-serif texts, but not for monospaced texts. image

t3chguy commented 3 weeks ago

The font is configurable in themes https://github.com/element-hq/element-web/blob/develop/docs/theming.md

dbkr commented 1 week ago

Have given to product, although to be honest I'd suggest just fixing the height of the font rather than introducing another complex feature to work around the bug.