Skip to content

Commit

Permalink
Fix glyph offsets (#15848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillibald committed Jun 14, 2024
1 parent 13bdcbf commit 99cf2f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Skia/Avalonia.Skia/TextShaperImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static Vector GetGlyphOffset(ReadOnlySpan<GlyphPosition> glyphPositions,

var offsetX = position.XOffset * textScale;

var offsetY = position.YOffset * textScale;
var offsetY = -position.YOffset * textScale;

return new Vector(offsetX, offsetY);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Windows/Avalonia.Direct2D1/Media/TextShaperImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static Vector GetGlyphOffset(ReadOnlySpan<GlyphPosition> glyphPositions,

var offsetX = position.XOffset * textScale;

var offsetY = position.YOffset * textScale;
var offsetY = -position.YOffset * textScale;

return new Vector(offsetX, offsetY);
}
Expand Down

0 comments on commit 99cf2f8

Please sign in to comment.