Class Glyph


  • public class Glyph
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String chars
      The Unicode text represented by this Glyph
      int code
      The code or id by which this is represented in the Font File
      int width
      The normalized width of this Glyph.
    • Constructor Summary

      Constructors 
      Constructor Description
      Glyph​(int code, int width, java.lang.String chars)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • code

        public final int code
        The code or id by which this is represented in the Font File
      • width

        public final int width
        The normalized width of this Glyph.
      • chars

        public final java.lang.String chars
        The Unicode text represented by this Glyph
    • Constructor Detail

      • Glyph

        public Glyph​(int code,
                     int width,
                     java.lang.String chars)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object