mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-19 10:47:56 +08:00
#141 divide width by 1000 for adobe type 1 font
the width shouldn't be transformed by the font's matrix, instead the width is divided by 1000 by default.
This commit is contained in:
@@ -125,9 +125,9 @@
|
||||
|
||||
boundingBox = matrix.Transform(boundingBox);
|
||||
|
||||
var width = matrix.TransformX(GetWidth(characterCode, boundingBox));
|
||||
var width = GetWidth(characterCode, boundingBox);
|
||||
|
||||
var result = new CharacterBoundingBox(boundingBox, width);
|
||||
var result = new CharacterBoundingBox(boundingBox, width/1000.0);
|
||||
|
||||
cachedBoundingBoxes[characterCode] = result;
|
||||
|
||||
|
Reference in New Issue
Block a user