Skip to content

Commit

Permalink
PDFBOX-5920: revert previous commit and check whether the name exists…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
THausherr committed Jan 6, 2025
1 parent 1c15175 commit 0b8f2fa
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,6 @@ public float getSpaceWidth()
try
{
// PDFBOX-5920: try with encoding, which gets the correct code
encode(" "); // this throws an exception if space doesn't exist,
// getStringWidth() not always
fontWidthOfSpace = getStringWidth(" ");
}
catch (IllegalArgumentException | UnsupportedOperationException ex)
Expand Down

0 comments on commit 0b8f2fa

Please sign in to comment.