Package icyllis.arc3d.core

# Class GlyphRun

java.lang.Object
icyllis.arc3d.core.GlyphRun

@Internal public class GlyphRun extends Object
GlyphRun provides raw buffer views and represents a text run.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `int`
  `mGlyphCount`
  `int`
  `mGlyphOffset`
  `int[]`
  `mGlyphs`
  Raw pointer view.
  `int`
  `mPositionOffset`
  `float[]`
  `mPositions`
  Raw pointer view.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GlyphRun()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clear()`
  Release heavy buffers.
  `Font`
  `font()`
  Read-only view.
  `void`
  `set(int[] glyphs, int glyphOffset, float[] positions, int positionOffset, int glyphCount, Font font)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### mGlyphs

    public int[] mGlyphs
    Raw pointer view.

  - ### mGlyphOffset

    public int mGlyphOffset

  - ### mPositions

    public float[] mPositions
    Raw pointer view.

  - ### mPositionOffset

    public int mPositionOffset

  - ### mGlyphCount

    public int mGlyphCount

- ## Constructor Details

  - ### GlyphRun

    public GlyphRun()

- ## Method Details

  - ### set

    public void set(@Nonnull int[] glyphs, int glyphOffset, @Nonnull float[] positions, int positionOffset, int glyphCount, @Nonnull Font font)

  - ### font

    public Font font()
    Read-only view.

  - ### clear

    public void clear()
    Release heavy buffers.