aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorPeter Herweg <pherweg@apache.org>2005-08-30 21:09:41 +0000
committerPeter Herweg <pherweg@apache.org>2005-08-30 21:09:41 +0000
commitf8a5fe02c46c557524c3586d0066daffb8551d82 (patch)
tree4ef6132081b8be396b9add3ad9d5c73a7d055bdf /src/java/org
parentf80c74dd16aeb6fdf15615beecf2803e64efbe13 (diff)
downloadxmlgraphics-fop-f8a5fe02c46c557524c3586d0066daffb8551d82.tar.gz
xmlgraphics-fop-f8a5fe02c46c557524c3586d0066daffb8551d82.zip
added support for superscript and subscript
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264863 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/fo/FOText.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java
index 4014e2fb8..8ac076678 100644
--- a/src/java/org/apache/fop/fo/FOText.java
+++ b/src/java/org/apache/fop/fo/FOText.java
@@ -24,11 +24,13 @@ import java.util.NoSuchElementException;
// FOP
import org.apache.fop.apps.FOPException;
import org.apache.fop.datatypes.ColorType;
+import org.apache.fop.datatypes.Length;
import org.apache.fop.fo.flow.Block;
import org.apache.fop.fo.pagination.Root;
import org.apache.fop.fo.properties.CommonFont;
import org.apache.fop.fo.properties.CommonHyphenation;
import org.apache.fop.fo.properties.CommonTextDecoration;
+import org.apache.fop.fo.properties.EnumLength;
import org.apache.fop.fo.properties.Property;
import org.apache.fop.fo.properties.SpaceProperty;
@@ -83,6 +85,7 @@ public class FOText extends FONode {
private int textTransform;
private Property wordSpacing;
private int wrapOption;
+ private EnumLength baselineShift;
// End of property values
/**
@@ -161,6 +164,7 @@ public class FOText extends FONode {
wordSpacing = pList.get(Constants.PR_WORD_SPACING);
wrapOption = pList.get(Constants.PR_WRAP_OPTION).getEnum();
textDecoration = pList.getTextDecorationProps();
+ baselineShift = (EnumLength) pList.get(Constants.PR_BASELINE_SHIFT);
}
/** @see org.apache.fop.fo.FONode#endOfNode() */
@@ -599,5 +603,9 @@ public class FOText extends FONode {
sb.append(" (").append(ca).append(")");
return sb.toString();
}
+
+ public EnumLength getBaseLineShift() {
+ return baselineShift;
+ }
} \ No newline at end of file