Skip to content

πŸ› Text popup menu does not follow global ThemeData fontFamilyΒ #712

@sky96111

Description

@sky96111

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.

  1. Clone fluent_ui and cd to example
  2. 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(

  1. Run demo.
  2. Type some text in TextBox and run right click TextBox
  3. 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 "倍"
screenshot

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions