VitalElement / AvalonStudio

Cross platform IDE and Shell
GNU Lesser General Public License v3.0
1.61k stars 235 forks source link

Unable to display Chinese string #728

Open rakuten opened 5 years ago

rakuten commented 5 years ago

Version: 0.7.0 OS: Mac

danwalmsley commented 5 years ago

Can you post an example string?

What monospaced font would be suitable for displaying this?

Fusion86 commented 5 years ago

This is probably because of https://github.com/AvaloniaUI/Avalonia/issues/1925 I can confirm that forcing a Direct2D backend (AppBuilder.UseDirect2D1();) solved the problem for my projects (but this obviously only works on Windows).

rakuten commented 5 years ago

I feeling the 0.6.2 seems is normal (I have been useless for a long time)

we use font for Tahoma or Microsoft YaHei,

danwalmsley commented 5 years ago

@rakuten are you compiling yourself?

Can you try changing: https://github.com/VitalElement/AvalonStudio.Shell/blob/b376f4e87d7c1a703adf3e7b8cf5a68ce37ec25e/src/AvalonStudio.Shell/Themes/BaseDark.xaml#L8

to

<FontFamily x:Key="EditorFont">Tahoma</FontFamily>

and tell me if it resolves your issue.

rakuten commented 5 years ago

@danwalmsley Thank you very much for your reply.

Unfortunately, no fix, I changed "Editor Font"(L8) and "UiFont"(L6), used "Tahoma" and "Microsoft YaHei", but the situation has not changed after recompiling

rakuten commented 5 years ago

这是个测试字符串...

This is a test string

danwalmsley commented 5 years ago

@rakuten thanks I will have a look into it

rakuten commented 5 years ago

@danwalmsley I found this problem also exists in Avalonia, probably not a problem with AvalonStudio.