Skip to content
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

Fix svgs being rendered blurry when at high dpi #2640

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acoates-ms
Copy link
Contributor

Summary

The windows svg rendering pass was always rendering the svg to a bitmap the size of the svg at 100% display scale factor, which would then be stretched at higher scale factors. This meant that the svg would be blurry when running in scale factor systems.

With this change the svg will be rendered taking into account the scale factor.

I also removed an invalid color="none" property set, which would cause errors when running against a debug D2D instance. - That property had no effect, as it was an invalid property value. -- Instead we just leave the property unset when there is no color specified.

Test Plan

Before:
Screenshot 2025-02-27 110318

After:
Screenshot 2025-02-27 151859

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)
  • I added a test for the API in the __tests__ folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant