AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.12k stars 2.26k forks source link

TextBox cannot fallback to system default font automatically #5962

Open hez2010 opened 3 years ago

hez2010 commented 3 years ago

Describe the bug If I use Avalonia with CJK locales without specifying FontFamily explicitly, it won't fallback to system locale default font if I input an unsupported character.

To Reproduce

  1. Switch to CJK locale and create a TextBox in Avalonia without specifying FontFamily.
  2. Input some CJK characters. (eg. テスト, 测试)

Expected behavior CJK characters are automatically fallback to the default font based on System settings.

Screenshots image

Desktop

Gillibald commented 3 years ago

There is no font fallback support for the current TextBox implementation

https://github.com/AvaloniaUI/Avalonia/pull/4893