From a11e0a3ea0cfde3a91a7c68b37e02e0dbf946125 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Tue, 7 Dec 2021 15:18:37 -0800 Subject: [PATCH] Proper Japanese fonts Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com> --- stylesheets/_variables.scss | 8 +++++--- ts/background.ts | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/stylesheets/_variables.scss b/stylesheets/_variables.scss index bd0b5b5a8..a46089d13 100644 --- a/stylesheets/_variables.scss +++ b/stylesheets/_variables.scss @@ -1,9 +1,11 @@ // Copyright 2015-2021 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; +$inter: Inter, 'Helvetica Neue', 'Source Sans Pro', 'SF Pro JP', + 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', メイリオ, Meiryo, + 'MS Pゴシック', 'Source Han Sans SC', 'Source Han Sans CN', + 'Hiragino Sans GB', 'Microsoft Yahei UI', 'Helvetica Neue', Helvetica, Arial, + sans-serif; // -- V3 Colors diff --git a/ts/background.ts b/ts/background.ts index 34f1ddb26..6e1077518 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -500,6 +500,11 @@ export async function startApp(): Promise { window.document.title = window.getTitle(); + document.documentElement.setAttribute( + 'lang', + window.getLocale().replace('_', '-') + ); + KeyChangeListener.init(window.textsecure.storage.protocol); window.textsecure.storage.protocol.on('removePreKey', (ourUuid: UUID) => { const uuidKind = window.textsecure.storage.user.getOurUuidKind(ourUuid);