Enum GlyfTable.GlyfFlags

    • Field Detail

      • bitMask

        private final int bitMask
      • argsCountIfSet

        private final int argsCountIfSet
      • argsCountIfNotSet

        private final int argsCountIfNotSet
    • Constructor Detail

      • GlyfFlags

        private GlyfFlags​(int argsCountIfSet,
                          int argsCountIfNotSet)
      • GlyfFlags

        private GlyfFlags​(int argsCountIfSet)
      • GlyfFlags

        private GlyfFlags()
    • Method Detail

      • values

        public static GlyfTable.GlyfFlags[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GlyfTable.GlyfFlags c : GlyfTable.GlyfFlags.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GlyfTable.GlyfFlags valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getOffsetToNextComposedGlyf

        public static int getOffsetToNextComposedGlyf​(int flags)
        Calculates, from the given flags, the offset to the next glyph index.
        Parameters:
        flags - the glyph data flags
        Returns:
        offset to the next glyph if any, or 0
      • hasMoreComposites

        public static boolean hasMoreComposites​(int flags)
        Checks the given flags to see if there is another composed glyph.
        Parameters:
        flags - the glyph data flags
        Returns:
        true if there is another composed glyph, otherwise false.