AndydeCleyre / colorcodebot

A simple Telegram bot for syntax highlighting
Do What The F*ck You Want To Public License
45 stars 6 forks source link

Ensure HTML is rendered with the "system standard" monospace font on macOS, or at least some monospace font #20

Closed AndydeCleyre closed 3 years ago

AndydeCleyre commented 3 years ago

We're currently setting font in CSS to monospace,mono,ui-monospace, but there's at least one report of proportional fonts being used by all browsers on macOS.

AndydeCleyre commented 3 years ago

I found two testers with macOS but they couldn't reproduce the issue.

Friendly ping to @marcotrosi to let me know if any more info can be provided.

marcotrosi commented 3 years ago

I found two testers with macOS but they couldn't reproduce the issue.

Friendly ping to @marcotrosi to let me know if any more info can be provided.

Let me know what you need

AndydeCleyre commented 3 years ago

Can you let me know, on this page at the line starting with "monospace" (just before the "cursive" section), what font is used for you?

If it's not a mono font, what's the browser+version?


Anyway, I just added a bunch of 'web-safe' fallback font families, so please give the bot another try and let me know how it goes.

If it's working for you, feel free to suggest a re-order of these (list is in the current fallback order):


Thanks!

marcotrosi commented 3 years ago

Both monofont now. On the page you linked and I tested the bot and my browser now uses a monofont for displaying. Thx