Class GlyphMetrics

java.lang.Object
com.myscript.iink.text.GlyphMetrics

public final class GlyphMetrics extends Object
Describes the position of a converted glyph.
Since:
1.2
  • Field Details

    • boundingBox

      public Rectangle boundingBox
      The glyph bounding box.
    • leftSideBearing

      public float leftSideBearing
      The glyph left side bearing.
    • rightSideBearing

      public float rightSideBearing
      The glyph right side bearing.
  • Constructor Details

    • GlyphMetrics

      public GlyphMetrics()
      Default constructor. Construct a glyph metrics object.
    • GlyphMetrics

      public GlyphMetrics(float x, float y, float width, float height, float leftSideBearing, float rightSideBearing)
      Constructs a glyph metrics object.
      Parameters:
      x - the glyph x coordinate.
      y - the glyph y coordinate.
      width - the glyph width.
      height - the glyph height.
      leftSideBearing - the left side bearing associated with this glyph.
      rightSideBearing - the right side bearing associated with this glyph.
  • Method Details

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object