pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1601124 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
Date Sat, 07 Jun 2014 15:04:21 GMT
Author: lehmi
Date: Sat Jun  7 15:04:21 2014
New Revision: 1601124

URL: http://svn.apache.org/r1601124
Log:
PDFBOX-62: extract the widths from the true type font if width is 0 as proposed by Tilman
Hausherr

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java?rev=1601124&r1=1601123&r2=1601124&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java Sat
Jun  7 15:04:21 2014
@@ -442,7 +442,7 @@ public class PDTrueTypeFont extends PDSi
     public float getFontWidth(int charCode)
     {
         float width = super.getFontWidth(charCode);
-        if (width < 0)
+        if (width <= 0)
         {
             if (advanceWidths.containsKey(charCode))
             {



Mime
View raw message