pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1708881 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java
Date Thu, 15 Oct 2015 19:50:24 GMT
Author: jahewson
Date: Thu Oct 15 19:50:23 2015
New Revision: 1708881

URL: http://svn.apache.org/viewvc?rev=1708881&view=rev
Log:
PDFBOX-2943: Default width of zero for missing Type 3 glyphs is correct

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java?rev=1708881&r1=1708880&r2=1708881&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java Thu
Oct 15 19:50:23 2015
@@ -19,8 +19,6 @@ package org.apache.pdfbox.pdmodel.font;
 import java.awt.geom.GeneralPath;
 import java.io.IOException;
 import java.io.InputStream;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.apache.fontbox.FontBoxFont;
 import org.apache.fontbox.util.BoundingBox;
 import org.apache.pdfbox.cos.COSArray;
@@ -42,8 +40,6 @@ import org.apache.pdfbox.util.Vector;
  */
 public class PDType3Font extends PDSimpleFont
 {
-    private static final Log LOG = LogFactory.getLog(PDType3Font.class);
-
     private PDResources resources;
     private COSDictionary charProcs;
     private Matrix fontMatrix;
@@ -131,7 +127,6 @@ public class PDType3Font extends PDSimpl
             }
             else
             {
-                LOG.warn("No width for glyph " + code + " in font " + getName() + ", using
width from font");
                 return getWidthFromFont(code);
             }
         }
@@ -143,7 +138,6 @@ public class PDType3Font extends PDSimpl
         PDType3CharProc charProc = getCharProc(code);
         if (charProc == null)
         {
-            LOG.warn("No CharProc for glyph " + code + " found, returning 0");
             return 0;
         }
         return charProc.getWidth();



Mime
View raw message