ScreenToGif icon indicating copy to clipboard operation
ScreenToGif copied to clipboard

Simplified Chinese Font Error

Open DeepChirp opened this issue 4 years ago • 5 comments

Hello! After setting Simplified Chinese, there are many places where the font is not displayed as expected. As shown in the picture. image image These should be the result of using a non-existent font (probably Ming Dynasty font). Please use Microsoft YaHei or Song as a standard. Thank you! [Note: The first picture is the editor, the second picture is the "Translation" in "Settings", there are many other places where this problem occurs]

DeepChirp avatar Apr 17 '21 15:04 DeepChirp

The system currently uses Segoe UI globally.

NickeManarin avatar Apr 17 '21 17:04 NickeManarin

You can remove all the font settings in the code and build it yourself as a workaround. Then the default font will be used: image A better solution would be adding font setting in the options window. 🤔

fz0000 avatar Apr 30 '21 07:04 fz0000

Hi @NickeManarin , I'm trying to fix it by adding a font name selection box there... however how can I apply the selected fontfamily to all the related fonts? Any clues? There're TOO MANY font with Seguo UI.....:(

SEWeiTung avatar Sep 27 '21 09:09 SEWeiTung

@MaledongGit There must be a global way of replacing a font. Perhaps creating a dynamic font resource and reusing everywhere?

But yeah, that's going to take a while. If you can create a proof of concept, I can replace all references later.

NickeManarin avatar Sep 27 '21 12:09 NickeManarin

@MaledongGit There must be a global way of replacing a font. Perhaps creating a dynamic font resource and reusing everywhere?

But yeah, that's going to take a while. If you can create a proof of concept, I can replace all references later.

Now I've used something like "Fonts.SystemFonts" to bind with a Combobox, and handle its SelectionChanged event, write the result directly into UserSettings, and read it out and apply it into the other places. That's a proof of concept.

Everything goes fine with me EXCEPT that:

  1. Should I replace all the places with "FontFamily=""Seugo UI"?
  2. I used "{Bind x:Static Fonts.SystemFonts, Path=Source"} to the font family, however it doesn't work properly....Any other clues?

SEWeiTung avatar Sep 28 '21 00:09 SEWeiTung