You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to WPF UI gallery, the caption FontTypography is 12 sized while Body is 14 sized.
However they look identical and when measuring the pixels they are both identical in height.
Also, the size do not match WinUI3 equivalent typography. Attached is a screenshot of WPF UI gallery vs WinUI3 Gallery.
You can clearly see the size difference between caption and body types in WinUI3, while they look identical in WPF UI gallery.
Apologies if this was a stupid report, I am fairly new to WPF.
To Reproduce
Open WPF UI gallery app, navigate to typograpy section and measure font size in pixels. Compare to WinUI3 equivalent app.
Expected behavior
Different font size is noticeable between caption and body FontTypography.
Screenshots
OS version
Edition Windows 11 Enterprise
Version 21H2
OS build 22000.3260
.NET version
8
WPF-UI NuGet version
3.0.5
Additional context
No response
The text was updated successfully, but these errors were encountered:
An interesting note, if I apply the style directly it renders OK. It is only when I apply the style via the FontTypography the issue becomes apparent. See this screenshot for the following code:
<StackPanel VerticalAlignment="Top">
<!--Use normal textblocks-->
<TextBlock FontSize="12" LineHeight="16" Text="The lazy brown dog jumped over some cats..."/>
<TextBlock FontSize="14" LineHeight="20" Text="The lazy brown dog jumped over some cats..."/>
<Separator Height="10"></Separator>
<!--Use wpf UI textblock and manually set style-->
<ui:TextBlock Style="{StaticResource CaptionTextBlockStyle}" Text="The lazy brown dog jumped over some cats..." />
<ui:TextBlock Style="{StaticResource BodyTextBlockStyle}" Text="The lazy brown dog jumped over some cats..." />
<Separator Height="10"></Separator>
<!--Use wpf UI textblock and set FontTypography-->
<ui:TextBlock FontTypography="Caption" Text="The lazy brown dog jumped over some cats..." />
<ui:TextBlock FontTypography="Body" Text="The lazy brown dog jumped over some cats..." />
</StackPanel>
Describe the bug
According to WPF UI gallery, the caption FontTypography is 12 sized while Body is 14 sized.
However they look identical and when measuring the pixels they are both identical in height.
Also, the size do not match WinUI3 equivalent typography. Attached is a screenshot of WPF UI gallery vs WinUI3 Gallery.
You can clearly see the size difference between caption and body types in WinUI3, while they look identical in WPF UI gallery.
Apologies if this was a stupid report, I am fairly new to WPF.
To Reproduce
Open WPF UI gallery app, navigate to typograpy section and measure font size in pixels. Compare to WinUI3 equivalent app.
Expected behavior
Different font size is noticeable between caption and body FontTypography.
Screenshots
OS version
Edition Windows 11 Enterprise
Version 21H2
OS build 22000.3260
.NET version
8
WPF-UI NuGet version
3.0.5
Additional context
No response
The text was updated successfully, but these errors were encountered: