haxelib icon indicating copy to clipboard operation
haxelib copied to clipboard

[website] code font not displaying as monospace

Open uvtc opened this issue 5 years ago • 1 comments

If in Firefox prefs I don't "allow pages to choose their own font", code samples are styled in a proportional font rather than a monospaced one.

This is independent of which font I choose as my default monospace font.

Firefox console indicates (I think) that the styling is:

font-family: "Source Code Pro", "Courier New";

but I have neither of those fonts installed (this is on Debian GNU/Linux, where I have "Courier" and "Courier 10 Pitch", but not "Courier New"). I do however have Liberation Mono and DejaVu Sans Mono (I can't remember which (or both?) was installed by default).

uvtc avatar Apr 22 '20 20:04 uvtc

That font-family should be followed by , monospace for a system default.

Aurel300 avatar Apr 22 '20 23:04 Aurel300