Class TextStyle
java.lang.Object
lol.trq.helios.text.TextStyle
How text is drawn: font, size, colour, shadow, weight, spacing and whether
ยง formatting codes apply.
Immutable; build one with builder(MsdfFont) and reuse it.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAccumulates aTextStyle.static enumText shadows. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextStyle.BuilderStarts a style.font()Returns the font.floatReturns the distance from one baseline to the next in drawing units.floatsize()Returns the size: the em height in drawing units.
-
Method Details
-
builder
Starts a style.- Parameters:
font- the font- Returns:
- a builder with size 9, white, no shadow, regular weight and formatting codes on
-
font
-
size
public float size()Returns the size: the em height in drawing units.- Returns:
- the size
-
lineHeight
public float lineHeight()Returns the distance from one baseline to the next in drawing units.- Returns:
- the line height
-