pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1701432 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
Date Sat, 05 Sep 2015 23:04:09 GMT
Author: tilman
Date: Sat Sep  5 23:04:09 2015
New Revision: 1701432

URL: http://svn.apache.org/r1701432
Log:
PDFBOX-2959: keep widths as floats, not ints

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java?rev=1701432&r1=1701431&r2=1701432&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java Sat Sep 
5 23:04:09 2015
@@ -55,7 +55,7 @@ public abstract class PDFont implements
     private final FontMetrics afmStandard14; // AFM for standard 14 fonts
 
     private PDFontDescriptor fontDescriptor;
-    private List<Integer> widths;
+    private List<Float> widths;
     private float avgFontWidth;
     private float fontWidthOfSpace = -1f;
 
@@ -446,14 +446,14 @@ public abstract class PDFont implements
      *
      * @return The widths of the characters.
      */
-    protected final List<Integer> getWidths()
+    protected final List<Float> getWidths()
     {
         if (widths == null)
         {
             COSArray array = (COSArray) dict.getDictionaryObject(COSName.WIDTHS);
             if (array != null)
             {
-                widths = COSArrayList.convertIntegerCOSArrayToList(array);
+                widths = COSArrayList.convertFloatCOSArrayToList(array);              
             }
             else
             {



Mime
View raw message