Closed Rangi42 closed 2 years ago
Maybe we should switch to a system fonts stack. What would be a good one, though?
From Stack Overflow:
-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif
ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace
(That's taken from inspecting their current CSS. The discussion mentions using Ubuntu and Roboto fonts, but those were removed after feedback.)
GitHub uses:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif
ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace
Have you considered just using sans-serif
and monospace
directly? Most browsers set these to sensible defaults. If the idea is "provide a reasonable default", that functionality already exists on the user agent side and there's no need to duplicate it.
The defaults are generally Arial and Courier, which arguably look worse than the system fonts.
This misrepresents hex literals like "0xFF" or "0x143".
(Using a custom font also causes a "flash of unstyled text" as the
@font-face
loads. I'd recommend listing just standard fonts that come with Windows, macOS, and typical Linux.)
I never saw this issue so sorry for being this late. It's a simple feature very easy to disable/enable via CSS: https://rsms.me/inter/#features. It's a "contextual alternative".
I am against using system fonts stack as they look unconsistent across OSes and the default ones on common distributions are horrible (and don't get me started on Windows ClearType cc @LIJI32 )
Is this still happening? @Rangi42
Yes, like "The default is 0x00." in https://rgbds.gbdev.io/docs/v0.5.2/rgbasm.1.
This misrepresents hex literals like "0xFF" or "0x143".
(Using a custom font also causes a "flash of unstyled text" as the
@font-face
loads. I'd recommend listing just standard fonts that come with Windows, macOS, and typical Linux.)