public interface IFontMetricsProvider
Modifier and Type | Method and Description |
---|---|
Rectangle[] |
getCharacterBoundingBoxes(Text text,
TextSpan[] spans)
Returns the bounding box of each glyph of the specified text if it were
displayed at 0,0 using the specified styles.
|
float |
getFontSizePx(Style style)
Returns the size of the specified font in pixels.
|
Rectangle[] getCharacterBoundingBoxes(Text text, TextSpan[] spans)
text
- the text.spans
- an array of glyph intervals with associated style.float getFontSizePx(Style style)
style
- the style that specifies the font.