Class Glyph

java.lang.Object
icyllis.arc3d.core.Glyph

public final class Glyph extends Object
Represents a CPU glyph + digest information for GPU drawing, managed by Strike.
  • Field Details

  • Constructor Details

    • Glyph

      public Glyph(int id)
  • Method Details

    • getGlyphID

      public int getGlyphID()
    • getLeft

      public int getLeft()
      The bearing X.
    • getTop

      public int getTop()
      The bearing Y.
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getMaxDimension

      public int getMaxDimension()
      Returns the largest dimension ( max(width, height) ).
    • getBounds

      public void getBounds(@Nonnull Rect2i dst)
      Returns the bounding box for this glyph.

      This may an exact bounding box or just a bounds of all control points, also known as pixel bounds.

    • getBounds

      public void getBounds(@Nonnull Rect2f dst)
      Returns the bounding box for this glyph, it holds rounded integer values.

      This may an exact bounding box or just a bounds of all control points, also known as pixel bounds.

    • isEmpty

      public boolean isEmpty()
    • getMaskFormat

      public byte getMaskFormat()
    • isColor

      public boolean isColor()
    • imageIsTooLarge

      public boolean imageIsTooLarge()
    • setImage

      public boolean setImage(ScalerContext scalerContext)
    • setImageHasBeenCalled

      public boolean setImageHasBeenCalled()
    • getImageBase

      public Object getImageBase()
    • getImageAddress

      public long getImageAddress()
    • getRowBytes

      public int getRowBytes()
    • getImageSize

      public int getImageSize()
    • setPath

      public boolean setPath(ScalerContext scalerContext)
    • setPath

      public boolean setPath(Path path)
    • setPathHasBeenCalled

      public boolean setPathHasBeenCalled()
    • getPath

      public Path getPath()
    • actionFor

      public int actionFor(int actionType)
      Returns the action result for the given text rendering method.
      Parameters:
      actionType - e.g. kDirectMask