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

[Bug] Font Weight not Displaying Correctly #934

Closed
Aurgasm opened this issue Jul 24, 2021 · 2 comments
Closed

[Bug] Font Weight not Displaying Correctly #934

Aurgasm opened this issue Jul 24, 2021 · 2 comments

Comments

@Aurgasm
Copy link

Aurgasm commented Jul 24, 2021

Font weights for several (but not all) fonts are not displaying correctly.

For example, Arial has 11 different font weights. However, going through the list, they all result in either a condensed or condensed bold weight.

Normal, Thin, Extra Light, Light, Semi Light, Medium all display as a condensed medium.

image

Semi Bold, Bold, Extra Bold, Black, Extra Black all display as a condensed bold.

image

This issue has persisted with some other custom fonts I have tested, which have been purchased separately and installed on windows (UniversSTD)

Small issue, as many other san-serif fonts display properly, but annoying if one is very used to a particular typeface.

@Aurgasm Aurgasm changed the title Font Style not Displaying Correctly Font Weight not Displaying Correctly Jul 24, 2021
@Aurgasm Aurgasm changed the title Font Weight not Displaying Correctly [Bug] Font Weight not Displaying Correctly Jul 24, 2021
@soumyamahunt
Copy link
Contributor

Actually Notepads does display font weights properly for "Arial". Notepads shows all the xaml supported font weights and font styles, that doesn't necessarily mean the specific font supports all those font weights/styles. For example if you open font properties in Windows Notepad:

notepad_wnAqyslRkbnotepad_OUxVbBWe0A

Arial only supports "Normal" and "Bold" font weight for "Narrow" font stretch type (which XAML detects default font stretch for this font), which is why you are seeing only two font weights when trying to change font weights in Notepads.

@0x7c13 0x7c13 closed this as completed Oct 31, 2021
@unforgettableid
Copy link

I don't do much software development anymore nowadays.

I Googled this problem. It might be a longstanding issue in XAML: microsoft/microsoft-ui-xaml#808.

A.) Maybe this is a valid workaround?

B.) Dear @0x7c13. Even if this Notepads issue is caused by an upstream bug in XAML: Could we please leave the Notepads issue open until either Microsoft fixes the upstream problem or we find a good workaround? If we leave the issue open, more people might see it. We could even label the issue as help wanted.

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

No branches or pull requests

4 participants