com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class GlyphId

  • Direct Known Subclasses:
    GlyphStringId, GlyphUInt32Id


    public abstract class GlyphId
    extends Object

    Represents glyph ids, available in the Font. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1's id is a glyph name, instance of (GlyphStringId) class. TTF's id is an int index, instance of (GlyphUInt32Id) class.

    • Method Detail

      • toString

        public abstract String toString()

        Returns string representation the glyph id.

        Overrides:
        toString in class Object
        Returns:
        glyph identifier
      • hashCode

        public abstract int hashCode()

        Returns hashcode of object.

        Overrides:
        hashCode in class Object
        Returns:
        Hashcode of object.
      • op_Equality

        public static boolean op_Equality(GlyphId obj1,
                                          Object obj2)

        Returns true if two glyph ids are equal.

        Parameters:
        obj1 - First glyph identifier to compare.
        obj2 - Second glyph identifier to compare.
        Returns:
        Comparison result.
      • op_Inequality

        public static boolean op_Inequality(GlyphId obj1,
                                            Object obj2)

        Returns true if two glyph ids are not equal.

        Parameters:
        obj1 - First glyph identifier to compare.
        obj2 - Second glyph identifier to compare.
        Returns:
        Comparison result.
      • equals

        public boolean equals(Object obj)

        Returns true if two glyph ids are not equal.

        Overrides:
        equals in class Object
        Parameters:
        obj - Glyph identifier to compare with.
        Returns:
        Comparison result.
      • toGlyphUInt32Id

        public GlyphUInt32Id toGlyphUInt32Id()

        Virtual cast to GlyphUInt32Id. GlyphUInt32Id overrides to return instance.

        Returns:
        null
      • toGlyphStringId

        public GlyphStringId toGlyphStringId()

        Virtual cast to GlyphStringId. GlyphStringId overrides to return instance.

        Returns:
        null