From: arved Date: Tue, 1 May 2001 01:02:13 +0000 (+0000) Subject: K. Liddle: vertical align amount modified X-Git-Tag: PRE_CODEFORMATTING~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=576b4cec9f6a26efdce5a0724f0ab14995e4a10d;p=xmlgraphics-fop.git K. Liddle: vertical align amount modified git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194231 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java index c08f4edc2..bbad26e06 100644 --- a/src/org/apache/fop/layout/LineArea.java +++ b/src/org/apache/fop/layout/LineArea.java @@ -665,10 +665,10 @@ public class LineArea extends Area { int vert = ia.getVerticalAlign(); if(vert == VerticalAlign.SUPER) { int fh = fontState.getAscender(); - ia.setYOffset((int)(placementOffset - (fh / 3.0))); + ia.setYOffset((int)(placementOffset - (2 * fh / 3.0))); } else if(vert == VerticalAlign.SUB) { int fh = fontState.getAscender(); - ia.setYOffset((int)(placementOffset + (fh / 3.0))); + ia.setYOffset((int)(placementOffset + (2 * fh / 3.0))); } } else { }