]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
A minor optimization.
authorAdrian Cumiskey <acumiskey@apache.org>
Thu, 17 Jul 2008 17:40:12 +0000 (17:40 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Thu, 17 Jul 2008 17:40:12 +0000 (17:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677649 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java

index d0874d6262eb732fb108c375de033a45ae3f7f1b..589fb2645dc9a83a5c22cb5340228a41d1af915a 100755 (executable)
@@ -36,6 +36,7 @@ import org.apache.fop.fo.flow.InlineLevel;
 import org.apache.fop.fo.flow.Leader;
 import org.apache.fop.fo.pagination.Title;
 import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
+import org.apache.fop.fo.properties.CommonFont;
 import org.apache.fop.fo.properties.CommonMarginInline;
 import org.apache.fop.fo.properties.SpaceProperty;
 import org.apache.fop.fonts.Font;
@@ -115,9 +116,12 @@ public class InlineLayoutManager extends InlineStackingLayoutManager {
         InlineLevel fobj = (InlineLevel) this.fobj;
 
         int padding = 0;
+        
         FontInfo fi = fobj.getFOEventHandler().getFontInfo();
-        FontTriplet[] fontkeys = fobj.getCommonFont().getFontState(fi);
-        font = fi.getFontInstance(fontkeys[0], fobj.getCommonFont().fontSize.getValue(this));
+        CommonFont commonFont = fobj.getCommonFont();
+        FontTriplet[] fontkeys = commonFont.getFontState(fi);
+        font = fi.getFontInstance(fontkeys[0], commonFont.fontSize.getValue(this));
+        
         lineHeight = fobj.getLineHeight();
         borderProps = fobj.getCommonBorderPaddingBackground();
         inlineProps = fobj.getCommonMarginInline();