Browse Source

Fix glyph offsets (#15848)

pull/16041/head
Benedikt Stebner 2 years ago
committed by GitHub
parent
commit
99cf2f8e8f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Skia/Avalonia.Skia/TextShaperImpl.cs
  2. 2
      src/Windows/Avalonia.Direct2D1/Media/TextShaperImpl.cs

2
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);
}

2
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);
}

Loading…
Cancel
Save