#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:
Eliot Jones
2020-02-25 13:44:15 +00:00
parent f7c6de4118
commit 486ea446c5

View File

@@ -125,9 +125,9 @@
boundingBox = matrix.Transform(boundingBox); 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; cachedBoundingBoxes[characterCode] = result;