Browse Source

Allow setting a LineHeight that is smaller than the default

pull/12613/head
Benedikt Stebner 3 years ago
parent
commit
b0691681cb
  1. 5
      src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs

5
src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs

@ -1282,10 +1282,7 @@ namespace Avalonia.Media.TextFormatting
if (!double.IsNaN(lineHeight) && !MathUtilities.IsZero(lineHeight))
{
if (lineHeight > height)
{
height = lineHeight;
}
height = lineHeight;
}
return new TextLineMetrics

Loading…
Cancel
Save