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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
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 |
|
|
|
|