mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 19:05:01 +08:00
Using Math.Min(letter.Width, letter.GlyphRectangle.Width) for rotated 180 word bounding box
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user