A TextBlock
with the same font as a TextPresenter
can be taller
#17964
Labels
TextBlock
with the same font as a TextPresenter
can be taller
#17964
Describe the bug
Introduced in 11.1.5 / 11.2.0.
A
TextBlock
with the same font as aTextPresenter
can be taller than theTextPresenter
.An example font which demonstrates the bug is Montserrat at 14 point.
When using the simple theme, this bug causes a
TextBox
to become taller when it has a visible watermark.To Reproduce
Repo which demonstrates the bug.
In the repo's app, the
TextBlock
is taller than theTextPresenter
. Also, when entering text into theTextBox
, it becomes shorter.Expected behavior
The heights of a
TextBlock
and aTextPresenter
with the same font should be equal.Avalonia version
11.1.5, 11.2.0, 11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: