Skip to main content

TextStyle

extends AbstractStyle<TextComponent, TextStyle>

Description

Text is at the core of most graphical user interfaces and having an unified font and text styles is crucial.

UCGUI comes with five basic styles for texts: Primary, Secondary, Tertiary, Caption and ButtonText.

The first four allow for simple hierarchial differentiation of text:

Basic Text Styles

The Secondary, Tertiary and Caption styles all expand from the Primary one.

The ButtonText style also expands on the primary one and simple centers the text horizontally as well. It is applied once to the default text element in the ButtonComponent when it is initially created.

tip

Take a look at the AbstractStyle class for examples on how to customize existing and create new styles.

Implementation