Make default font stack generic

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.
This commit is contained in:
Poren Chiang 2023-08-22 14:07:04 +08:00 committed by GitHub
parent d455f62e5f
commit 672bd723d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,