rust-playground
rust-playground copied to clipboard
Prefer Google Fonts version of Source Code Pro over local version
There are issues with some versions of Source Code Pro that prevent changing the color of the font from black (e.g., syntax highlighting doesn't work).
Firefox 80 seems to have a regression that caused Bugzilla #1520157 to resurface on macOS.
Continued from https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Firefox.2080.2E0.20removes.20colors.20from.20the.20playground.20on.20MacOS.20.2E.2E.2E.
One potential (hacky) fix is to serve the Google Fonts CSS @font-face file from the playground server but modify the file to prefer the Google Fonts version. It would be nice if there were a non-hacky way to do it, e.g. if Google Fonts had an option to prefer their version.
Another temporary "fix" could be to use some other font (like Courier) until we can figure out a good solution.