You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2014/03/11 19:39:23 UTC
svn commit: r1576467 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
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();