You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/01/06 08:33:53 UTC
svn commit: r1922916 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
Author: tilman
Date: Mon Jan 6 08:33:53 2025
New Revision: 1922916
URL: http://svn.apache.org/viewvc?rev=1922916&view=rev
Log:
PDFBOX-5920: revert previous commit and check whether the name exists in PDType1CFont.getWidth(), as suggested by Andreas Lehmkühler
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java?rev=1922916&r1=1922915&r2=1922916&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java Mon Jan 6 08:33:53 2025
@@ -561,8 +561,6 @@ public abstract class PDFont implements
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 (UnsupportedOperationException ex)