Describe the bug
Text popup menu does not follow global ThemeData fontFamily
To Reproduce
Steps to reproduce the behavior:
For non-Chinese Windows locale:
Font "Microsoft YaHei" is not exist by default. You should use other fonts to reproduce this problem.
- Clone fluent_ui and cd to example
- diff --git a/example/lib/main.dart b/example/lib/main.dart
index 9829dfc..7da4715 100644
--- a/example/lib/main.dart
+++ b/example/lib/main.dart
@@ -98,6 +98,7 @@ class MyApp extends StatelessWidget {
),
),
theme: ThemeData(
+ fontFamily: 'Microsoft YaHei UI',
accentColor: appTheme.color,
visualDensity: VisualDensity.standard,
focusTheme: FocusThemeData(
- Run demo.
- Type some text in TextBox and run right click TextBox
- Text popup menu presents a fonts different from TextBox
Expected behavior
Text popup menu will follow global ThemeData fontFamily setting.
Screenshots
As you can see from the "ε€εΆ" in the screenshot, I set the font-family to "Microsoft YaHei UI", the TextBox component correctly applied the set font, while the Text Popup menu did not follow "Microsoft YaHei UI" but used the system default fallback font, which shows the Japanese "ε€"

Additional context
Add any other context about the problem here.
Describe the bug
Text popup menu does not follow global ThemeData fontFamily
To Reproduce
Steps to reproduce the behavior:
For non-Chinese Windows locale:
Font "Microsoft YaHei" is not exist by default. You should use other fonts to reproduce this problem.
Expected behavior
Text popup menu will follow global ThemeData fontFamily setting.
Screenshots

As you can see from the "ε€εΆ" in the screenshot, I set the font-family to "Microsoft YaHei UI", the TextBox component correctly applied the set font, while the Text Popup menu did not follow "Microsoft YaHei UI" but used the system default fallback font, which shows the Japanese "ε€"
Additional context
Add any other context about the problem here.