pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1700899 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
Date Wed, 02 Sep 2015 20:45:28 GMT
Author: jahewson
Date: Wed Sep  2 20:45:28 2015
New Revision: 1700899

URL: http://svn.apache.org/r1700899
Log:
PDFBOX-2954: Add more detail to error message

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java?rev=1700899&r1=1700898&r2=1700899&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java Wed
Sep  2 20:45:28 2015
@@ -324,7 +324,8 @@ public class PDType1Font extends PDSimpl
     {
         if (unicode > 0xff)
         {
-            throw new IllegalArgumentException("This font type only supports 8-bit code points");
+            throw new IllegalArgumentException(String.format("Can't encode U+%04X in font
%s. " +
+                    "Type 1 fonts only supports 8-bit code points", unicode, getName()));
         }
 
         String name = getGlyphList().codePointToName(unicode);



Mime
View raw message