Browse Source
Make sure GlyphRunImpl.InkBounds are always at a positive location (#16601)
pull/17021/head
Benedikt Stebner
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
0 deletions
-
src/Skia/Avalonia.Skia/GlyphRunImpl.cs
|
|
|
@ -75,6 +75,11 @@ namespace Avalonia.Skia |
|
|
|
currentX += advance; |
|
|
|
} |
|
|
|
|
|
|
|
if (runBounds.Left < 0) |
|
|
|
{ |
|
|
|
runBounds = runBounds.Translate(new Vector(-runBounds.Left, 0)); |
|
|
|
} |
|
|
|
|
|
|
|
ArrayPool<SKRect>.Shared.Return(glyphBounds); |
|
|
|
|
|
|
|
BaselineOrigin = baselineOrigin; |
|
|
|
|