pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1636172 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java
Date Sun, 02 Nov 2014 19:35:01 GMT
Author: jahewson
Date: Sun Nov  2 19:35:00 2014
New Revision: 1636172

URL: http://svn.apache.org/r1636172
Log:
PDFBOX-2442: Don't use DefaultWidth for zero-width characters

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java?rev=1636172&r1=1636171&r2=1636172&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java Sun Nov
 2 19:35:00 2014
@@ -67,22 +67,6 @@ public class Type2CharString extends Typ
     }
 
     /**
-     * Returns the advance width of this glyph.
-     */
-    public int getWidth()
-    {
-        int width = super.getWidth();
-        if (width == 0)
-        {
-            return defWidthX;
-        }
-        else
-        {
-            return width;
-        }
-    }
-
-    /**
      * Returns the Type 2 charstring sequence.
      */
     public List<Object> getType2Sequence()



Mime
View raw message