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

FontIcon and SymbolIcon has weird padding on Windows 10 #9104

Closed
HO-COOH opened this issue Nov 19, 2023 · 5 comments
Closed

FontIcon and SymbolIcon has weird padding on Windows 10 #9104

HO-COOH opened this issue Nov 19, 2023 · 5 comments
Labels
area-External Not owned by the WinUI team, not actionable in this repository. area-Icon bug Something isn't working team-Rendering Issue for the Rendering team

Comments

@HO-COOH
Copy link

HO-COOH commented Nov 19, 2023

Describe the bug

FontIcon and SymbolIcon has weird padding that makes it offset to its center in its container. And this issue only seems to happen on Windows 10 with WinUI3, not with WinUI2.

Steps to reproduce the bug

  1. Use this xaml in WinUI3 project
        <Button Padding="0">
            <FontIcon Glyph="&#xE77;"/>
        </Button>

You got
image

  1. Use this xaml in WinUI3 project
        <Button Padding="0" HorizontalAlignment="Center">
            <SymbolIcon Symbol="Accept"/>
        </Button>

You got
image.

In UWP with WinUI2, with the same xaml, the result it expected.
image

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.4.2: 1.4.231008000

Windows version

Windows 10 (1809): Build 17763

Additional context

This issue is so universal, that it also bugged WinUI3 Gallery.
image

@HO-COOH HO-COOH added the bug Something isn't working label Nov 19, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Nov 19, 2023
@kmgallahan
Copy link
Contributor

kmgallahan commented Nov 19, 2023

Shows fine for me on W10 Build 19045.3693:

Screenshot 2023-11-19 165638

Windows 10 (1809): Build 17763

Your version of Windows has been unsupported for 2-3 years now.

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-home-and-pro

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-enterprise-and-education

@HO-COOH
Copy link
Author

HO-COOH commented Nov 20, 2023

Shows fine for me on W10 Build 19045.3693:

Screenshot 2023-11-19 165638

Windows 10 (1809): Build 17763

Your version of Windows has been unsupported for 2-3 years now.

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-home-and-pro

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-enterprise-and-education

I am aware of this. But since WinUI3 is labeled support down to 17763, I need to ensure the compatibility to the lowest version I want to support. So I want to know if this issue comes from the Segoe MDL2 Assets system font. If that is the case, I might as well bundle a Fluent Icon font instead

@bpulliam bpulliam added team-Rendering Issue for the Rendering team area-Icon and removed needs-triage Issue needs to be triaged by the area owners labels Dec 11, 2023
@ranjeshj ranjeshj added the area-External Not owned by the WinUI team, not actionable in this repository. label Dec 15, 2023
@ranjeshj
Copy link
Contributor

Will share this info with the font team.

@llongley llongley reopened this Dec 15, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 15, 2023
@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Jan 5, 2024
@Jay-o-Way
Copy link
Contributor

Jay-o-Way commented Jan 18, 2024

I'm gonna take a quick, wild guess and say this is caused by old OS, or maybe old version of .NET or framework or something like that. Also, I know that SymbolIcon (used to?) uses MDL2 and deprecated icon codes. See #6409 and MicrosoftDocs/winrt-api#2363. I'll have to search to see if Microsoft has fixed this recently...

@gegao18
Copy link

gegao18 commented Jan 23, 2024

Thanks for reporting this. Since the target version of Windows has been out-of-support for years now, this bug is out-of-scope for the focus of the team.

@gegao18 gegao18 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-External Not owned by the WinUI team, not actionable in this repository. area-Icon bug Something isn't working team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

7 participants