diff --git a/src/Skia/Avalonia.Skia/GlyphRunImpl.cs b/src/Skia/Avalonia.Skia/GlyphRunImpl.cs index 732d1871360..205daf4c7b9 100644 --- a/src/Skia/Avalonia.Skia/GlyphRunImpl.cs +++ b/src/Skia/Avalonia.Skia/GlyphRunImpl.cs @@ -75,6 +75,11 @@ public GlyphRunImpl(IGlyphTypeface glyphTypeface, double fontRenderingEmSize, currentX += advance; } + if (runBounds.Left < 0) + { + runBounds = runBounds.Translate(new Vector(-runBounds.Left, 0)); + } + ArrayPool.Shared.Return(glyphBounds); BaselineOrigin = baselineOrigin;