]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
K. Liddle: vertical align amount modified
authorarved <arved@unknown>
Tue, 1 May 2001 01:02:13 +0000 (01:02 +0000)
committerarved <arved@unknown>
Tue, 1 May 2001 01:02:13 +0000 (01:02 +0000)
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

index c08f4edc261c0a8cda093f8ffcca4d38f36561d4..bbad26e06f382628b00f181291ac634a7e497738 100644 (file)
@@ -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 {
             }