Text.setCharacterSize

Set the character size.

The default size is 30.

Note that if the used font is a bitmap font, it is not scalable, thus not all requested sizes will be available to use. This needs to be taken into consideration when setting the character size. If you need to display text of a certain size, make sure the corresponding bitmap font that supports that size is used.

class Text
void
setCharacterSize
(
uint size
)

Parameters

size uint

New character size, in pixels.

//deprecated: Use the 'characterSize' property instead.

Meta