pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1798001 - /pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
Date Wed, 07 Jun 2017 20:54:25 GMT
Author: tilman
Date: Wed Jun  7 20:54:25 2017
New Revision: 1798001

URL: http://svn.apache.org/viewvc?rev=1798001&view=rev
Log:
PDFBOX-3819: improve logging

Modified:
    pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java

Modified: pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java?rev=1798001&r1=1798000&r2=1798001&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
(original)
+++ pdfbox/branches/2.0/fontbox/src/main/java/org/apache/fontbox/ttf/PostScriptTable.java
Wed Jun  7 20:54:25 2017
@@ -17,6 +17,8 @@
 package org.apache.fontbox.ttf;
 
 import java.io.IOException;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 /**
  * A table in a true type font.
@@ -25,6 +27,7 @@ import java.io.IOException;
  */
 public class PostScriptTable extends TTFTable
 {
+    private static final Log LOG = LogFactory.getLog(PostScriptTable.class);
     private float formatType;
     private float italicAngle;
     private short underlinePosition;
@@ -142,6 +145,7 @@ public class PostScriptTable extends TTF
         else if (formatType == 3.0f)
         {
             // no postscript information is provided.
+            LOG.warn("No PostScript name information is provided for the font " + font.getName());
         }
         initialized = true;
     }



Mime
View raw message