diff options
author | Simon Steiner <ssteiner@apache.org> | 2022-10-27 07:22:22 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2022-10-27 07:22:22 +0000 |
commit | 07c10456a3f3d5ad386992a9b4006b0334f7a8ac (patch) | |
tree | 6b982e31ff787a5392a3b2eed7999d2f991fc8c4 | |
parent | ba8239511e7051aae29199a6e250aaebdd1ecc43 (diff) | |
download | xmlgraphics-fop-07c10456a3f3d5ad386992a9b4006b0334f7a8ac.tar.gz xmlgraphics-fop-07c10456a3f3d5ad386992a9b4006b0334f7a8ac.zip |
FOP-3102: Move composite glyphs to the end
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1904868 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java b/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java index 6ad479a0e..c5380b82e 100644 --- a/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java +++ b/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java @@ -42,7 +42,7 @@ public class GlyfTable { private final FontFileReader in; /** All the composite glyphs that appear in the subset. */ - private Set<Integer> compositeGlyphs = new TreeSet<Integer>(); + protected Set<Integer> compositeGlyphs = new TreeSet<Integer>(); /** All the glyphs that are composed, but do not appear in the subset. */ protected Set<Integer> composedGlyphs = new TreeSet<Integer>(); @@ -56,7 +56,7 @@ public class GlyfTable { this.in = in; } - private static enum GlyfFlags { + public enum GlyfFlags { ARG_1_AND_2_ARE_WORDS(4, 2), ARGS_ARE_XY_VALUES, @@ -96,7 +96,7 @@ public class GlyfTable { * @param flags the glyph data flags * @return offset to the next glyph if any, or 0 */ - static int getOffsetToNextComposedGlyf(int flags) { + public static int getOffsetToNextComposedGlyf(int flags) { int offset = 0; for (GlyfFlags flag : GlyfFlags.values()) { offset += (flags & flag.bitMask) > 0 ? flag.argsCountIfSet : flag.argsCountIfNotSet; @@ -110,7 +110,7 @@ public class GlyfTable { * @param flags the glyph data flags * @return true if there is another composed glyph, otherwise false. */ - static boolean hasMoreComposites(int flags) { + public static boolean hasMoreComposites(int flags) { return (flags & MORE_COMPONENTS.bitMask) > 0; } } |