diff options
author | Luca Furini <lfurini@apache.org> | 2005-10-27 14:38:12 +0000 |
---|---|---|
committer | Luca Furini <lfurini@apache.org> | 2005-10-27 14:38:12 +0000 |
commit | 7d01c0732e96ddf3dac732bf177dd0513cd844b1 (patch) | |
tree | d173fd7e662af51745749e675355e698624731ae /src/java/org/apache/fop/util | |
parent | 9a0772f9559bce29a13b5e4b8845320dd07fe740 (diff) | |
download | xmlgraphics-fop-7d01c0732e96ddf3dac732bf177dd0513cd844b1.tar.gz xmlgraphics-fop-7d01c0732e96ddf3dac732bf177dd0513cd844b1.zip |
Moved the text-splitting logic from TextArea to TextLM, as suggested by Manuel and Jeremias.
Some simplification in TextLM#addAreas().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328882 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/util')
-rw-r--r-- | src/java/org/apache/fop/util/CharUtilities.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/util/CharUtilities.java b/src/java/org/apache/fop/util/CharUtilities.java index c1a537521..43c2c3e41 100644 --- a/src/java/org/apache/fop/util/CharUtilities.java +++ b/src/java/org/apache/fop/util/CharUtilities.java @@ -120,6 +120,19 @@ public class CharUtilities { } /** + * Method to determine if the character is an adjustable + * space. + * @param c character to check + * @return True if the character is adjustable + */ + public static boolean isAdjustableSpace(char c) { + //TODO: are there other kinds of adjustable spaces? + return + (c == '\u0020' // normal space + /*|| c == ''*/); + } + + /** * Determines if the character represents any kind of space. * @param c character to check * @return True if the character represents any kind of space |