Benedikt Stebner
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs
|
|
|
@ -1245,8 +1245,9 @@ namespace Avalonia.Media.TextFormatting |
|
|
|
{ |
|
|
|
var textMetrics = textRun.TextMetrics; |
|
|
|
var glyphRun = textRun.GlyphRun; |
|
|
|
var runBounds = glyphRun.InkBounds.WithX(widthIncludingWhitespace + glyphRun.InkBounds.X); |
|
|
|
|
|
|
|
bounds = bounds.Union(glyphRun.InkBounds); |
|
|
|
bounds = bounds.Union(runBounds); |
|
|
|
|
|
|
|
if (fontRenderingEmSize < textMetrics.FontRenderingEmSize) |
|
|
|
{ |
|
|
|
|