TextShaper.GlyphsConsumer
public
static
interface
TextShaper.GlyphsConsumer
android.text.TextShaper.GlyphsConsumer |
A consumer interface for accepting text shape result.
Summary
Public methods | |
---|---|
abstract
void
|
accept(int start, int count, PositionedGlyphs glyphs, TextPaint paint)
Accept text shape result. |
Public methods
accept
public abstract void accept (int start, int count, PositionedGlyphs glyphs, TextPaint paint)
Accept text shape result.
The implementation must not keep reference of paint since it will be mutated for the
subsequent styles. Also, for saving heap size, keep only necessary members in the
TextPaint
instead of copying TextPaint
object.
Parameters | |
---|---|
start |
int : The start index of the shaped text.
Value is 0 or greater |
count |
int : The length of the shaped text.
Value is 0 or greater |
glyphs |
PositionedGlyphs : The shape result.
This value cannot be null . |
paint |
TextPaint : The paint to be used for drawing.
This value cannot be null . |