Skip to content

Conversation

@dipeshmsft
Copy link
Member

@dipeshmsft dipeshmsft commented Mar 22, 2022

Fixes # #6525

Main PR

Description

When we serialize a GlyphRun to an XPS file, the advance widths for each glyph are rounded to an integer separately, thus producing a significant difference between the rendered output in the file and on the screen. This PR fixes the rounding, by taking into account the cumulative rounding error from the previous glyphs while rounding the current glyph.

Customer Impact

Affects the visual fidelity of WPF Applications.

Regression

No

Testing

Ad-Hoc testing. Tried with different sample apps.

Risk

Less

@dipeshmsft dipeshmsft requested a review from a team as a code owner March 22, 2022 08:18
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Mar 22, 2022
@ghost ghost requested review from SamBent and singhashish-wpf March 22, 2022 08:19
@dipeshmsft dipeshmsft requested review from anjaligupta-dev and singhashish-wpf and removed request for singhashish-wpf March 22, 2022 08:19
@ghost
Copy link

ghost commented May 4, 2022

Hi @dipeshmsft. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

@rbhanda rbhanda added this to the 6.0.6 milestone May 5, 2022
@dipeshmsft dipeshmsft merged commit 2bcd1c6 into main May 10, 2022
@dipeshmsft dipeshmsft deleted the glyphrun-issue branch May 10, 2022 06:22
@ghost ghost locked as resolved and limited conversation to collaborators Jun 9, 2022
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 Servicing-approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants