public interface GlyphList
Modifier and Type | Method and Description |
---|---|
int |
getCharOffset(int glyphIndex)
Maps the given glyph index to the char offset.
|
int |
getGlyphCode(int glyphIndex)
Returns the glyph code for the given glyphIndex.
|
int |
getGlyphCount()
Returns the number of glyphs in GlyphList.
|
float |
getHeight()
Returns the height of the GlyphList
|
RectBounds |
getLineBounds()
See TextLine#getBounds()
(used outside text layout in rendering and span bounds)
|
Point2D |
getLocation()
The top-left location of the GlyphList relative to
the origin of the Text Layout.
|
float |
getPosX(int glyphIndex)
The x position for the given glyphIndex relative the GlyphList.
|
float |
getPosY(int glyphIndex)
The y position for the given glyphIndex relative the GlyphList.
|
TextSpan |
getTextSpan()
Used during layout children (for rich text)
can be null (for non-rich text) but never null for rich text.
|
float |
getWidth()
Returns the width of the GlyphList
|
boolean |
isComplex()
Means that this GlyphList was shaped using complex processing (ICU),
either because it is complex script or because font features were
requested.
|
int getGlyphCount()
int getGlyphCode(int glyphIndex)
float getPosX(int glyphIndex)
float getPosY(int glyphIndex)
float getWidth()
float getHeight()
RectBounds getLineBounds()
Point2D getLocation()
int getCharOffset(int glyphIndex)
boolean isComplex()
TextSpan getTextSpan()
Copyright © 2020. All rights reserved.