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

PathGeometry language parse problem #8454

Closed
dotMorten opened this issue May 4, 2023 · 3 comments
Closed

PathGeometry language parse problem #8454

dotMorten opened this issue May 4, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@dotMorten
Copy link
Contributor

dotMorten commented May 4, 2023

Describe the bug

I have a bunch of path geometries that I use for icons.
However quite a lot of them have weird rendering artifacts in WinUI, whereas they look just fine in WPF.

Steps to reproduce the bug

  1. Add the following XAML to your WinUI and WPF apps:
<Path Data="M31.345 29H1.655L16.5 1.96zm-28-1h26.31L16.5 4.04z" Width="200" Height="200"
              Stretch="Uniform" Fill="Black" HorizontalAlignment="Center" VerticalAlignment="Center" />
  1. Compare the generated output.

Expected behavior

WPF:
image
WinUI (wrong and smaller):
image

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.3.0: 1.3.230331000

Windows version

Windows 11 (22H2): Build 22621

Additional context

More examples:
X Icon
M21.678 4H11.322L4 11.322v10.356L11.322 29h10.356L29 21.678V11.322zm1.47 18.157l-.99.99L16.5 17.49l-5.657 5.657-.99-.99L15.51 16.5l-5.657-5.657.99-.99L16.5 15.51l5.657-5.657.99.99L17.49 16.5z
WinUI: image
WPF: image

Web
M16.5 2.2a14.3 14.3 0 1 0 14.3 14.3A14.3 14.3 0 0 0 16.5 2.2zM3.225 17h4.99a22.74 22.74 0 0 0 .901 6H4.903a13.218 13.218 0 0 1-1.678-6zM17 9V3.246c2.29.285 4.295 2.492 5.523 5.754zm5.862 1a21.999 21.999 0 0 1 .924 6H17v-6zM16 3.246V9h-5.523C11.705 5.738 13.709 3.531 16 3.246zM16 10v6H9.214a21.999 21.999 0 0 1 .924-6zm-7.785 6h-4.99a13.218 13.218 0 0 1 1.678-6h4.213a22.74 22.74 0 0 0-.901 6zm1 1H16v6h-5.862a21.999 21.999 0 0 1-.924-6zM16 24v5.754c-2.29-.285-4.295-2.492-5.523-5.754zm1 5.754V24h5.523c-1.228 3.262-3.232 5.469-5.523 5.754zM17 23v-6h6.786a21.999 21.999 0 0 1-.924 6zm7.785-6h4.99a13.218 13.218 0 0 1-1.678 6h-4.213a22.74 22.74 0 0 0 .901-6zm0-1a22.74 22.74 0 0 0-.901-6h4.213a13.218 13.218 0 0 1 1.678 6zm2.696-7h-3.928a12.578 12.578 0 0 0-3.329-5.261A13.316 13.316 0 0 1 27.481 9zM12.776 3.739A12.578 12.578 0 0 0 9.446 9H5.52a13.316 13.316 0 0 1 7.257-5.261zM5.519 24h3.928a12.578 12.578 0 0 0 3.329 5.261A13.316 13.316 0 0 1 5.519 24zm14.705 5.261A12.578 12.578 0 0 0 23.554 24h3.927a13.316 13.316 0 0 1-7.257 5.261z
WinUI: image
WPF: image

Table
M2 5v22h28V5zm6 21H3v-4h5zm0-5H3v-4h5zm0-5H3v-4h5zm10 10H9v-4h9zm0-5H9v-4h9zm0-5H9v-4h9zm11 10H19v-4h10zm0-5H19v-4h10zm0-5H19v-4h10zm0-5H3V6h26z
WinUI: image
WPF: image

@dotMorten dotMorten added the bug Something isn't working label May 4, 2023
@dotMorten
Copy link
Contributor Author

Oh looks like a duplicate of: #3077

@dotMorten
Copy link
Contributor Author

Reopening since the linked issue isn't marked as a bug.

@dotMorten dotMorten reopened this May 4, 2023
@codendone
Copy link
Contributor

I fixed that issue to be labelled as a bug rather than a question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants