Using Math.Min(letter.Width, letter.GlyphRectangle.Width) for rotated 180 word bounding box

This commit is contained in:
BobLd
2020-01-19 11:00:20 +00:00
committed by Eliot Jones
parent c4b6bbc8e5
commit 3b90370f28

View File

@@ -157,7 +157,7 @@
maxY = letter.StartBaseLine.Y;
}
var right = letter.StartBaseLine.X + Math.Max(letter.Width, letter.GlyphRectangle.Width);
var right = letter.StartBaseLine.X + Math.Min(letter.Width, letter.GlyphRectangle.Width);
if (right < minX)
{
minX = right;