From c7d2fc462646c6c5fba13dd5f0bb1b5ae48ec919 Mon Sep 17 00:00:00 2001 From: hiddify-com <114227601+hiddify-com@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:44:48 +0200 Subject: [PATCH] fix; font --- lib/core/localization/locale_extensions.dart | 2 +- pubspec.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/localization/locale_extensions.dart b/lib/core/localization/locale_extensions.dart index bf99fb64..220b25c5 100644 --- a/lib/core/localization/locale_extensions.dart +++ b/lib/core/localization/locale_extensions.dart @@ -4,7 +4,7 @@ import 'package:hiddify/gen/fonts.gen.dart'; import 'package:hiddify/gen/translations.g.dart'; extension AppLocaleX on AppLocale { - String get preferredFontFamily => this == AppLocale.fa ? FontFamily.shabnam : (Platform.isIOS || Platform.isMacOS ? "" : FontFamily.emoji); + String get preferredFontFamily => this == AppLocale.fa ? FontFamily.shabnam : (!Platform.isWindows ? "" : FontFamily.emoji); String get localeName => switch (flutterLocale.toString()) { "en" => "English", diff --git a/pubspec.yaml b/pubspec.yaml index a3ef1ec1..383cf6a0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -135,6 +135,9 @@ flutter: - family: Shabnam fonts: - asset: assets/fonts/Shabnam.ttf + # - family: Roboto + # fonts: + # - asset: assets/fonts/Roboto.ttf - family: Emoji fonts: - asset: assets/fonts/Emoji.ttf