Skip to reading
Buttons, Labels & Text Boxes

Set font, alignment and decoration

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations
Source table from Set font, alignment and decoration, page 8
SettingWhat it changes
FontThe project font, a system font or the default. Imported project fonts travel more predictably with a game.
Font Size / WeightLetter size and the requested font weight. The chosen font must support the appearance you expect.
Bold / ItalicEmphasis for the text.
Underline / StrikethroughText decoration, independent of the control's border.
Text Color / Text OpacityThe lettering, separately from the surface behind it.
Text AlignmentThe position of the text within the element frame.

Figure 5. The lower text controls include color, opacity and alignment. Use them for the lettering, rather than changing the background opacity.

Use centered text for a short command button. Use left or left-center for information the player scans from the same edge. Keep button captions short; give longer explanations their own label.

A font installed on your machine may be absent on another system. Import the intended font through the asset workflow and choose that project font when the finished game needs a specific look.

Test accents and symbols with the actual font. A replacement square is usually a missing glyph, not a broken wildcard. Plain words and ordinary punctuation make a useful first test.

Page 8 of 46Permalink
Go to page