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
It seems that italic font is not taken into account by text blocks and as a result some characters might not be displayed fully.
Steps to reproduce the bug
The following XAML code reproduces the issue:
<TextBlockFontStyle="Italic"TextAlignment="Justify"TextWrapping="Wrap"Padding="0">
<TextBlock.Text>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with
desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</TextBlock.Text>
</TextBlock>
where f (and other characters) is not fully visible:
Expected behavior
All characters should be fully displayed.
Screenshots
No response
NuGet package version
None
Windows version
Windows 11 (22H2): Build 22621
Additional context
As a workaround one can set the Padding attribute of <TextBlock> - e.g.
<TextBlock.Text>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with
desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</TextBlock.Text>
The result is then:
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems that italic font is not taken into account by text blocks and as a result some characters might not be displayed fully.
Steps to reproduce the bug
The following XAML code reproduces the issue:
(See https://github.com/MartyIX/WinUiDemos/tree/feature/2024-09-15-TextBlock-italic-and-justify and MartyIX/WinUiDemos@76c0d04)
It displays as follows:
where
f
(and other characters) is not fully visible:Expected behavior
All characters should be fully displayed.
Screenshots
No response
NuGet package version
None
Windows version
Windows 11 (22H2): Build 22621
Additional context
As a workaround one can set the
Padding
attribute of<TextBlock>
- e.g.<TextBlock.Text>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with
desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</TextBlock.Text>
The result is then:
The text was updated successfully, but these errors were encountered: