pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1576467 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
Date Tue, 11 Mar 2014 18:39:23 GMT
Author: tilman
Date: Tue Mar 11 18:39:23 2014
New Revision: 1576467

URL: http://svn.apache.org/r1576467
Log:
PDFBOX-1946: respect coding convention

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java?rev=1576467&r1=1576466&r2=1576467&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java Tue
Mar 11 18:39:23 2014
@@ -362,16 +362,17 @@ public class PDFStreamEngine
             }
         }
         
-        if( spaceWidthText == 0 )
+        if (spaceWidthText == 0)
         {
-            spaceWidthText = (font.getAverageFontWidth()*glyphSpaceToTextSpaceFactor);
+            spaceWidthText = (font.getAverageFontWidth() * glyphSpaceToTextSpaceFactor);
             // The average space width appears to be higher than necessary
             // so lets make it a little bit smaller.
             spaceWidthText *= .80f;
         }
-        else 
-            spaceWidthText=1.0f; // if could not find font, use a generic value
-        
+        else
+        {
+            spaceWidthText = 1.0f; // if could not find font, use a generic value
+        }        
         float maxVerticalDisplacementText = 0;
 
         Matrix textStateParameters = new Matrix();



Mime
View raw message