pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1723786 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1CFont.java
Date Fri, 08 Jan 2016 19:49:52 GMT
Author: tilman
Date: Fri Jan  8 19:49:51 2016
New Revision: 1723786

URL: http://svn.apache.org/viewvc?rev=1723786&view=rev
Log:
PDFBOX-3152: improve error msg

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1CFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1CFont.java?rev=1723786&r1=1723785&r2=1723786&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1CFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1CFont.java Fri
Jan  8 19:49:51 2016
@@ -304,10 +304,10 @@ public class PDType1CFont extends PDSimp
         if (!encoding.contains(name))
         {
             throw new IllegalArgumentException(
-                    String.format("U+%04X is not available in this font's encoding: %s",
-                                  unicode, encoding.getEncodingName()));
+                    String.format("U+%04X ('%s') is not available in this font's encoding:
%s",
+                                  unicode, name, encoding.getEncodingName()));
         }
-        
+
         String nameInFont = getNameInFont(name);
         
         Map<String, Integer> inverted = encoding.getNameToCodeMap();



Mime
View raw message