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

[Regression] FontFamily resolution changed between WinUI 2 and WinUI 3 #9247

Open
jbrianceau opened this issue Jan 12, 2024 · 1 comment
Open
Labels
bug Something isn't working team-Controls Issue for the Controls team

Comments

@jbrianceau
Copy link
Member

jbrianceau commented Jan 12, 2024

Describe the bug

On the same machine, some FontFamily that are properly resolved with WinUI 2 fall back to the default Segoe UI font with WinUI 3.

Steps to reproduce the bug

Use the following XAML snippet in an app:

<TextBlock FontSize="24">
    <TextBlock.Inlines>
        <Run Text="Segoe UI" FontFamily="Segoe UI"/><LineBreak/>
        <Run Text="Arial" FontFamily="Arial"/><LineBreak/>
        <Run Text="Arial Narrow" FontFamily="Arial Narrow"/><LineBreak/>
        <Run Text="Algerian" FontFamily="Algerian"/><LineBreak/>
        <Run Text="Harlow Solid Italic" FontFamily="Harlow Solid Italic"/><LineBreak/>
    </TextBlock.Inlines>
</TextBlock>

Note that other controls like CheckBox are impacted as well.

Expected behavior

On the same machine, the rendering should be the same whether WinUI 2 or WinUI 3 is used.

Screenshots

Using a WinUI 2 / UWP app, rendering is correct:
image

Using a WinUI 3 / WinAppSDK app, rendering is not correct. "Arial Narrow" and "Harlow Solid Italic" fall back to Segoe UI:
image

NuGet package version

WinUI 3 - Windows App SDK 1.4.4: 1.4.231219000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@jbrianceau jbrianceau added the bug Something isn't working label Jan 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 12, 2024
@JohnnyWestlake
Copy link

JohnnyWestlake commented Jan 14, 2024

Also related #6109

Caused by change change from WSS family resolution in Windows 10 SDK's to Typographic font families for Windows 11 SDK's, with no way provided to properly reference the missing fonts. This also affects WinUI 2 if the Min version is set to a Windows 11 SDK.

@bpulliam bpulliam added team-Controls Issue for the Controls team team-CompInput Issue for IXP (Composition, Input) team and removed needs-triage Issue needs to be triaged by the area owners team-CompInput Issue for IXP (Composition, Input) team labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants