diff --git a/src/Skia/Avalonia.Skia/TextShaperImpl.cs b/src/Skia/Avalonia.Skia/TextShaperImpl.cs index 6744727c24..963edd604f 100644 --- a/src/Skia/Avalonia.Skia/TextShaperImpl.cs +++ b/src/Skia/Avalonia.Skia/TextShaperImpl.cs @@ -142,7 +142,7 @@ namespace Avalonia.Skia var offsetX = position.XOffset * textScale; - var offsetY = position.YOffset * textScale; + var offsetY = -position.YOffset * textScale; return new Vector(offsetX, offsetY); } diff --git a/src/Windows/Avalonia.Direct2D1/Media/TextShaperImpl.cs b/src/Windows/Avalonia.Direct2D1/Media/TextShaperImpl.cs index 630696e760..2d0edb8f37 100644 --- a/src/Windows/Avalonia.Direct2D1/Media/TextShaperImpl.cs +++ b/src/Windows/Avalonia.Direct2D1/Media/TextShaperImpl.cs @@ -143,7 +143,7 @@ namespace Avalonia.Direct2D1.Media var offsetX = position.XOffset * textScale; - var offsetY = position.YOffset * textScale; + var offsetY = -position.YOffset * textScale; return new Vector(offsetX, offsetY); }