Package icyllis.arc3d.core

# Class TextBlob.Builder.RunBuffer

java.lang.Object
icyllis.arc3d.core.TextBlob.Builder.RunBuffer

Enclosing class:
  `TextBlob.Builder`

public final class TextBlob.Builder.RunBuffer extends Object
RunBuffer supplies storage for glyphs and positions within a run.

A run is a sequence of glyphs sharing font metrics and positioning. Each run may position its glyphs by providing (x,y) pairs, one per glyph.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RunBuffer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TextBlob.Builder.RunBuffer`
  `addGlyph(int glyph)`
  `TextBlob.Builder.RunBuffer`
  `addGlyphs(int[] glyphs, int offset, int count)`
  `TextBlob.Builder.RunBuffer`
  `addPosition(float x, float y)`
  `TextBlob.Builder.RunBuffer`
  `addPositions(float[] positions, int offset, int count)`

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

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

- ## Constructor Details

  - ### RunBuffer

    public RunBuffer()

- ## Method Details

  - ### addGlyph

    public TextBlob.Builder.RunBuffer addGlyph(int glyph)

  - ### addPosition

    public TextBlob.Builder.RunBuffer addPosition(float x, float y)

  - ### addGlyphs

    public TextBlob.Builder.RunBuffer addGlyphs(@Nonnull int[] glyphs, int offset, int count)

  - ### addPositions

    public TextBlob.Builder.RunBuffer addPositions(@Nonnull float[] positions, int offset, int count)