]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Using the constant LineLayoutManager.DEFAULT_SPACE_WIDTH instead of the font-dependan...
authorLuca Furini <lfurini@apache.org>
Mon, 6 Dec 2004 13:55:18 +0000 (13:55 +0000)
committerLuca Furini <lfurini@apache.org>
Mon, 6 Dec 2004 13:55:18 +0000 (13:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198190 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/TextLayoutManager.java

index 27ce997654a01d0ca3250fa0810efbc49823adde..09a6c6c94df34d26ae0ce403fa9fdca4265b78c7 100644 (file)
@@ -720,14 +720,14 @@ public class TextLayoutManager extends AbstractLayoutManager
                                       (short) 1, (short) 0,
                                       wordSpaceIPD, false));
                     returnList.add
-                        (new KnuthGlue(0, 3 * wordSpaceIPD.opt, 0,
+                        (new KnuthGlue(0, 3 * LineLayoutManager.DEFAULT_SPACE_WIDTH, 0,
                                        new LeafPosition(this, vecAreaInfo.size() - 1), false));
                     returnList.add
                         (new KnuthPenalty(0, 0, false,
                                           new LeafPosition(this, -1), true));
                     returnList.add
                         (new KnuthGlue(wordSpaceIPD.opt,
-                                       - 3 * wordSpaceIPD.opt, 0,
+                                       - 3 * LineLayoutManager.DEFAULT_SPACE_WIDTH, 0,
                                        new LeafPosition(this, -1), true));
                     iNextStart ++;
                     break;
@@ -1016,14 +1016,14 @@ public class TextLayoutManager extends AbstractLayoutManager
                 case EN_START  : // fall through
                 case EN_END    :
                     returnList.add
-                        (new KnuthGlue(0, 3 * wordSpaceIPD.opt, 0,
+                        (new KnuthGlue(0, 3 * LineLayoutManager.DEFAULT_SPACE_WIDTH, 0,
                                        new LeafPosition(this, iReturnedIndex), false));
                     returnList.add
                         (new KnuthPenalty(0, 0, false,
                                           new LeafPosition(this, -1), true));
                     returnList.add
                         (new KnuthGlue(wordSpaceIPD.opt,
-                                       - 3 * wordSpaceIPD.opt, 0,
+                                       - 3 * LineLayoutManager.DEFAULT_SPACE_WIDTH, 0,
                                        new LeafPosition(this, -1), true));
                     iReturnedIndex ++;
                     break;