Skip to content

Conversation

@Kuldeep-MS
Copy link
Contributor

@Kuldeep-MS Kuldeep-MS commented Feb 27, 2025

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

@Kuldeep-MS Kuldeep-MS requested review from a team as code owners February 27, 2025 10:28
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 27, 2025
Copy link
Contributor

Copilot AI left a 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.

@codecov
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.22910%. Comparing base (b0f8705) to head (d91a106).
Report is 98 commits behind head on main.

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     
Flag Coverage Δ
Debug 11.22910% <ø> (-0.16721%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kuldeep-MS Kuldeep-MS force-pushed the fix/global-user-composite-font branch from 4746997 to d91a106 Compare April 2, 2025 09:47
@miloush
Copy link
Contributor

miloush commented Apr 2, 2025

SimSun-ExtG ranges look OK to me now, they are block aligned.

@Kuldeep-MS Kuldeep-MS merged commit 1002fa5 into dotnet:main May 15, 2025
8 checks passed
@Kuldeep-MS
Copy link
Contributor Author

/backport to release/8.0

@github-actions
Copy link

Started backporting to release/8.0: https://github.com/dotnet/wpf/actions/runs/15551475662

@Kuldeep-MS
Copy link
Contributor Author

/backport to release/9.0

@github-actions
Copy link

Started backporting to release/9.0: https://github.com/dotnet/wpf/actions/runs/15551480615

@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants