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

SVG not longer rendering #9415

Closed
galois77 opened this issue Mar 8, 2024 · 3 comments
Closed

SVG not longer rendering #9415

galois77 opened this issue Mar 8, 2024 · 3 comments
Labels
area-Images Images, SVG bug Something isn't working team-Rendering Issue for the Rendering team
Milestone

Comments

@galois77
Copy link

galois77 commented Mar 8, 2024

Describe the bug

Since the last update, the google font icons are not rendered in our WinUI 3 app
accueil

Steps to reproduce the bug

                        <ImageIcon Source="/Resources/Icones/accueil.svg" Width="Auto" Height="Auto"/>

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.0: 1.5.240227000

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

@galois77 galois77 added the bug Something isn't working label Mar 8, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Mar 8, 2024
@codendone codendone added area-Images Images, SVG team-Rendering Issue for the Rendering team and removed needs-triage Issue needs to be triaged by the area owners labels Apr 5, 2024
@ranjeshj ranjeshj added needs-author-feedback Asked author to supply more information. and removed needs-author-feedback Asked author to supply more information. labels Apr 9, 2024
@gegao18
Copy link

gegao18 commented Apr 11, 2024

Thanks for reporting this. I repro this regression, and it's caused by SVG scaling changes in WinUI 3 in 1.5.

The SVG file itself defines a negative viewbox (viewBox="0 -960 960 960") that's messing up scaling. One workaround is to change this to a positive viewBox (viewBox="0 0 960 960") and update the path to compensate.

I'll work on a fix for the 1.6 timeframe.

@gegao18
Copy link

gegao18 commented Apr 24, 2024

Fix checked in for WASDK 1.6.

@gegao18 gegao18 closed this as completed Apr 24, 2024
@codendone codendone added this to the WinAppSDK 1.6 milestone Apr 24, 2024
@codendone
Copy link
Contributor

The fix is now also in Version 1.5.4 (1.5.240607001).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Images Images, SVG bug Something isn't working team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

4 participants