Add fallbacks if the custom font doesn't load.

If the custom font doesn't load for some reason, the browser will fall back to some random font, possibly a serif font that looks Very Wrong. "system-ui" should choose the system font for the current platform, whatever it is, which is at least *a* system font even if it's not the right one for CS 1.6. For older browsers that don't support "system-ui", fall back to "sans-serif", which should look at least vaguely right.
This commit is contained in:
Screwtapello 2025-01-25 13:55:47 +11:00 committed by Tim Allen
parent 75ce39a6af
commit 967c6d1e1a
3 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ body {
line-height: 1.5; line-height: 1.5;
background-color: var(--bg); background-color: var(--bg);
color: var(--text); color: var(--text);
font-family: ArialPixel; font-family: ArialPixel, system-ui, sans-serif;
} }
/* Scrollbars */ /* Scrollbars */

2
css/cs16.min.css vendored

File diff suppressed because one or more lines are too long

View file

@ -64,7 +64,7 @@ body {
line-height: 1.5; line-height: 1.5;
background-color: var(--bg); background-color: var(--bg);
color: var(--text); color: var(--text);
font-family: ArialPixel; font-family: ArialPixel, system-ui, sans-serif;
} }
/* Scrollbars */ /* Scrollbars */