You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ss...@apache.org on 2022/10/27 07:22:22 UTC

svn commit: r1904868 - /xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java

Author: ssteiner
Date: Thu Oct 27 07:22:22 2022
New Revision: 1904868

URL: http://svn.apache.org/viewvc?rev=1904868&view=rev
Log:
FOP-3102: Move composite glyphs to the end

Modified:
    xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java

Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java?rev=1904868&r1=1904867&r2=1904868&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java (original)
+++ xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/fonts/truetype/GlyfTable.java Thu Oct 27 07:22:22 2022
@@ -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;
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org