rust-playground icon indicating copy to clipboard operation
rust-playground copied to clipboard

Prefer Google Fonts version of Source Code Pro over local version

Open camelid opened this issue 5 years ago • 2 comments

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.

camelid avatar Sep 04 '20 20:09 camelid

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.

camelid avatar Sep 04 '20 20:09 camelid

Another temporary "fix" could be to use some other font (like Courier) until we can figure out a good solution.

camelid avatar Sep 04 '20 20:09 camelid