littlekt
0.6.0
common
core
/
com.lehaine.littlekt.graphics.g2d.font
/
GlyphLayout
Glyph
Layout
class
GlyphLayout
Author
Colton Daily
Constructors
Functions
Properties
Constructors
Glyph
Layout
Link copied to clipboard
fun
GlyphLayout
(
)
Functions
reset
Link copied to clipboard
fun
reset
(
)
set
Text
Link copied to clipboard
fun
setText
(
font
:
Font
,
text
:
CharSequence
,
color
:
Color
=
Color.WHITE
,
width
:
Float
=
0.0f
,
scaleX
:
Float
=
1.0f
,
scaleY
:
Float
=
1.0f
,
align
:
HAlign
=
HAlign.LEFT
,
wrap
:
Boolean
=
false
,
truncate
:
String
?
=
null
)
Calculates the glyphs position and size.
Properties
colors
Link copied to clipboard
val
colors
:
List
<
Int
>
height
Link copied to clipboard
var
height
:
Float
=
0.0f
runs
Link copied to clipboard
val
runs
:
List
<
GlyphRun
>
width
Link copied to clipboard
var
width
:
Float
=
0.0f