-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adding simsun-extg font to support more character #10517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding simsun-extg font to support more character #10517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
src/Microsoft.DotNet.Wpf/src/PresentationCore/Fonts/GlobalUserInterface.CompositeFont
Show resolved
Hide resolved
…user-composite-font
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10517 +/- ##
===================================================
- Coverage 11.39631% 11.22910% -0.16721%
===================================================
Files 3353 3353
Lines 668041 668041
Branches 74980 74980
===================================================
- Hits 76132 75015 -1117
- Misses 590563 591785 +1222
+ Partials 1346 1241 -105
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
4746997 to
d91a106
Compare
|
SimSun-ExtG ranges look OK to me now, they are block aligned. |
src/Microsoft.DotNet.Wpf/src/PresentationCore/Fonts/GlobalUserInterface.CompositeFont
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationCore/Fonts/GlobalUserInterface.CompositeFont
Show resolved
Hide resolved
|
/backport to release/8.0 |
|
Started backporting to release/8.0: https://github.com/dotnet/wpf/actions/runs/15551475662 |
|
/backport to release/9.0 |
|
Started backporting to release/9.0: https://github.com/dotnet/wpf/actions/runs/15551480615 |
Issue Description
Some Chinese characters are being displayed as boxes in WPF due to unavailability of the font.
Background Infromation
When text is rendered, each character's codepoint is searched in either the default font or the specified font. If the codepoint is not found, it falls back to composite fonts to locate the codepoint. These composite fonts are collections of different fonts that cover various codepoint ranges and are associated with different languages, enabling the rendering of characters.
Change Description
Adding Simsun-ExtG font and modifying the character range for the Simsun-ExtB font to GlobalUserInterface composite font. This will enable us to support more character from GB18030.
Customer Impact
all the characters will be displayed correctly, without this many of the Chinese characters will be displayed as boxes.
Regression
NA
Testing
In progress
Risk
Low
Microsoft Reviewers: Open in CodeFlow