Describe the bug
The bounding size of italic text is calculated wrong.
In this example with Avalonia.Fonts.Inter all italic text has a display problem:
To Reproduce
<TextBlock Text="clipped" Background="#442211" VerticalAlignment="Center"/>
<TextBlock Text="clipped" Background="#442211" VerticalAlignment="Center" FontStyle="Italic"/>
<TextBlock Text="clipped" Width="60" TextAlignment="Right" Background="#442211" VerticalAlignment="Center"/>
<TextBlock Text="clipped" Width="60" TextAlignment="Right" Background="#442211" VerticalAlignment="Center" FontStyle="Italic"/>
The same problem arises if you exchange the TextBlock with a TextBox.
Expected behavior
Italic text is proper clipped.
Avalonia version
Was is 11.x and still exists in 12.x
OS
Windows
Additional context
No response
Describe the bug
The bounding size of italic text is calculated wrong.
In this example with Avalonia.Fonts.Inter all italic text has a display problem:
To Reproduce
The same problem arises if you exchange the TextBlock with a TextBox.
Expected behavior
Italic text is proper clipped.
Avalonia version
Was is 11.x and still exists in 12.x
OS
Windows
Additional context
No response