@@ -239,6 +239,20 @@ void mainLoop() {
239
239
240
240
final rootNavigatorKey = GlobalKey <NavigatorState >();
241
241
242
+ String ? getWindowsFont (AppTheme theme) {
243
+ if (! Platform .isWindows) return null ;
244
+
245
+ final lc = theme.locale? .languageCode.toLowerCase ();
246
+ final cc = theme.locale? .scriptCode? .toLowerCase ();
247
+
248
+ if (lc == 'ja' ) return "Yu Gothic" ;
249
+ if (lc == 'ko' ) return 'Malgun Gothic' ;
250
+ if (lc == 'zh' && cc == 'hant' ) return "Microsoft JhengHei" ;
251
+ if (lc == 'zh' && cc == 'hans' ) return "Microsoft YaHei" ;
252
+
253
+ return null ;
254
+ }
255
+
242
256
class Rune extends StatefulWidget {
243
257
const Rune ({super .key});
244
258
@@ -281,10 +295,12 @@ class _RuneState extends State<Rune> {
281
295
color: appTheme.color,
282
296
themeMode: appTheme.mode,
283
297
theme: FluentThemeData (
298
+ fontFamily: getWindowsFont (appTheme),
284
299
accentColor: appTheme.color,
285
300
visualDensity: VisualDensity .standard,
286
301
),
287
302
darkTheme: FluentThemeData (
303
+ fontFamily: getWindowsFont (appTheme),
288
304
brightness: Brightness .dark,
289
305
accentColor: appTheme.color,
290
306
visualDensity: VisualDensity .standard,
0 commit comments