From 07bc9ff8dc935e57e6f2647439c0a09c3cf4bc58 Mon Sep 17 00:00:00 2001 From: veyndan Date: Wed, 22 May 2024 14:46:32 +0200 Subject: [PATCH 1/2] Use `system-ui` as default font I'm on Ubuntu, and the font that's currently shown for me on matrix.org is Nimbus Sans. The font in the existing font list that is causing this is the font "Helvetica", which I do not have installed. From my cursory understanding of font matching, when running `fc-match helvetica` in the terminal, I get `NimbusSans-Regular.otf: "Nimbus Sans" "Regular"`, which explains why I'm being shown Nimbus Sans. As it appears from the existing font list, the desired result was to use the font of the system the user is on. By using `system-ui`, we can achieve this. In my case, I would be shown the Ubuntu Font, as that's my default on my system. --- sass/_base.scss | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sass/_base.scss b/sass/_base.scss index 4765ebfae..f300922e9 100644 --- a/sass/_base.scss +++ b/sass/_base.scss @@ -35,13 +35,7 @@ body { background-color: #fff; color: var(--color-text); - font-family: "Helvetica Neue", - "Helvetica", - Arial, - -apple-system, - BlinkMacSystemFont, - "Segoe UI", - Roboto, + font-family: system-ui, sans-serif, "Apple Color Emoji", /* Emojis*/ From 0524749c1e10e5aa84d5e8ecdb4391e84cb2fa77 Mon Sep 17 00:00:00 2001 From: veyndan Date: Thu, 6 Jun 2024 17:07:25 +0200 Subject: [PATCH 2/2] Add back Helvetica Neue is first font --- sass/_base.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sass/_base.scss b/sass/_base.scss index f300922e9..f6ced1803 100644 --- a/sass/_base.scss +++ b/sass/_base.scss @@ -35,7 +35,8 @@ body { background-color: #fff; color: var(--color-text); - font-family: system-ui, + font-family: "Helvetica Neue", + system-ui, sans-serif, "Apple Color Emoji", /* Emojis*/