Browse Source

Merge pull request #12613 from Gillibald/fixes/lineHeight

Allow setting a LineHeight that is smaller than the default
pull/12642/head
Benedikt Stebner 3 years ago
committed by GitHub
parent
commit
06b336d55d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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