fix; font

This commit is contained in:
hiddify-com
2024-07-31 22:44:48 +02:00
parent 36e2bca843
commit c7d2fc4626
2 changed files with 4 additions and 1 deletions

View File

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

View File

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