diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/fo/FOText.java | 8 |
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 |