From 8621f63f9b3d5b44b2a6e50c2e5b0a9bb3bd4a93 Mon Sep 17 00:00:00 2001 From: NPL <66727014+Npepperlinux@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:57:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Linux=E3=81=AE=E3=83=95=E3=82=A9=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=B3=E3=83=BC=E3=83=AB=E3=83=90=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/view/themes/app_theme_scope.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/view/themes/app_theme_scope.dart b/lib/view/themes/app_theme_scope.dart index 1e3eafe68..dd634f301 100644 --- a/lib/view/themes/app_theme_scope.dart +++ b/lib/view/themes/app_theme_scope.dart @@ -65,7 +65,8 @@ class AppThemeScopeState extends ConsumerState { } List resolveFontFamilyCallback() { - if (defaultTargetPlatform == TargetPlatform.windows) { + if (defaultTargetPlatform == TargetPlatform.windows || + defaultTargetPlatform == TargetPlatform.linux) { return ["Noto Sans CJK JP", "KosugiMaru", "BIZ UDPGothic"]; } if (defaultTargetPlatform == TargetPlatform.iOS || @@ -101,7 +102,8 @@ class AppThemeScopeState extends ConsumerState { fontFamily: "Segoe UI Emoji", fontFamilyFallback: ["Segoe UI Emoji", "Noto Color Emoji", "Meiryo"]); } - if (defaultTargetPlatform == TargetPlatform.android) { + if (defaultTargetPlatform == TargetPlatform.android || + defaultTargetPlatform == TargetPlatform.linux) { return const TextStyle( fontFamily: "Noto Color Emoji", fontFamilyFallback: ["Noto Color Emoji", "Noto Sans JP"]); From 1acc2e9b89755120d50fcd7d364beadb957824ee Mon Sep 17 00:00:00 2001 From: NPL <66727014+Npepperlinux@users.noreply.github.com> Date: Mon, 4 Sep 2023 21:23:28 +0900 Subject: [PATCH 2/2] Update app_theme_scope.dart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LinuxでNoto Sans CJK JPを使用するように修正 --- lib/view/themes/app_theme_scope.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/view/themes/app_theme_scope.dart b/lib/view/themes/app_theme_scope.dart index dd634f301..f7af6c359 100644 --- a/lib/view/themes/app_theme_scope.dart +++ b/lib/view/themes/app_theme_scope.dart @@ -60,6 +60,9 @@ class AppThemeScopeState extends ConsumerState { defaultTargetPlatform == TargetPlatform.macOS) { return "SF Pro Text"; } + if (defaultTargetPlatform == TargetPlatform.linux) { + return "Noto Sans CJK JP"; + } return "KosugiMaru"; }