From 576b4cec9f6a26efdce5a0724f0ab14995e4a10d Mon Sep 17 00:00:00 2001 From: arved Date: Tue, 1 May 2001 01:02:13 +0000 Subject: [PATCH] K. Liddle: vertical align amount modified git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194231 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/layout/LineArea.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { } -- 2.39.5