From 38f143d717ee6acb0f0913c0be89253f40ee8fde Mon Sep 17 00:00:00 2001 From: Luca Furini Date: Mon, 6 Dec 2004 13:55:18 +0000 Subject: [PATCH] Using the constant LineLayoutManager.DEFAULT_SPACE_WIDTH instead of the font-dependant wordSpaceIPD.opt when creating auxiliary glue items for start and end alignment 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java index 27ce99765..09a6c6c94 100644 --- a/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java @@ -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; -- 2.39.5