pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1601125 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
Date Sat, 07 Jun 2014 15:05:23 GMT
Author: lehmi
Date: Sat Jun  7 15:05:23 2014
New Revision: 1601125

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

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

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java?rev=1601125&r1=1601124&r2=1601125&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
Sat Jun  7 15:05:23 2014
@@ -659,7 +659,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