Skip to content

Commit 0b8f2fa

Browse files
committed
PDFBOX-5920: revert previous commit and check whether the name exists in PDType1CFont.getWidth(), as suggested by Andreas Lehmkühler
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922914 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1c15175 commit 0b8f2fa

File tree

1 file changed

+0
-2
lines changed
  • pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font

1 file changed

+0
-2
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,6 @@ public float getSpaceWidth()
575575
try
576576
{
577577
// PDFBOX-5920: try with encoding, which gets the correct code
578-
encode(" "); // this throws an exception if space doesn't exist,
579-
// getStringWidth() not always
580578
fontWidthOfSpace = getStringWidth(" ");
581579
}
582580
catch (IllegalArgumentException | UnsupportedOperationException ex)

0 commit comments

Comments
 (0)