From 672bd723d52bcebe342cde39c8ef88edcceb1291 Mon Sep 17 00:00:00 2001 From: Poren Chiang Date: Tue, 22 Aug 2023 14:07:04 +0800 Subject: [PATCH] Make default font stack generic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current font fallback stack imposes Simplified Chinese (China GB standard) fonts regardless of users’ system and interface language. This commit will make the default fallback stack more generic and specify language-specific variants later. Note: Source Han Sans (@adobe-fonts/source-han-sans) automatically chooses the correct CJK glyph variant base on document language, hence it is retained in the stack. --- stylesheets/_variables.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stylesheets/_variables.scss b/stylesheets/_variables.scss index 254beff441d1..8dc88f237dfa 100644 --- a/stylesheets/_variables.scss +++ b/stylesheets/_variables.scss @@ -1,9 +1,9 @@ // Copyright 2015 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -$inter: Inter, 'Helvetica Neue', 'Source Sans Pro', 'Source Han Sans SC', - 'Source Han Sans CN', 'Hiragino Sans GB', 'Hiragino Kaku Gothic', - 'Microsoft Yahei UI', Helvetica, Arial, sans-serif; +// Note: Add language-specific fallbacks in @localized-fonts mixin +$inter: Inter, 'Source Sans Pro', 'Source Han Sans', -apple-system, system-ui, + 'Segoe UI', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; // Note: This font-family is checked for in matchMonospace, to support paste scenarios $monospace: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo,