Looks like the mono font has somehow changed to JetBrains Mono (gross!), likely due to a Discourse styling update. I’d prefer not to have any downloaded fonts here at all, so can we switch back to the Apple / system default fonts, at least on macOS?
To be specific the problem is in the definition of the custom property --d-font-family--monospace which is currently set to JetBrains Mono, Consolas, Monaco, monospace
It appears to be defined in the file https://sea2.discourse-cdn.com/swift/stylesheets/color_definitions_base__6_a029a365f57788d4a8d377ce107ecd2e4206ff87.css:
:root {
--d-font-family--monospace: JetBrains Mono, Consolas, Monaco, monospace
}
I was able to use the StopTheMadness Pro plugin in Safari to reset any use of JetBrains Mono to the system mono. It doesn’t prevent downloading the custom font but at least it looks right.
I’m on Windows and don’t want to use any browser plugins… Don't know what the "correct" font for code snippets is, but the current font after recent Discourse update looks horrible. Readability is poor.
I’m just curious, but you mean on the web when using the forums this happens?
Yes, on this forum. Font for code snippets like this:
func foo() -> Int {
return 42 // Please note the font in which this code is displayed.
}