UevKF8zjRV_WEtpJsXhr
We use cookies on this site to enhance your user experience
Collapse Sidebar

Font

The Font Enum is used in TextBox, TextLabel and TextButton to determine how the GUI element will render its text. Some fonts have bold, italic and/or light variants (as there is no font-weight or font-style properties).

With the exception of the “Legacy” font, each font will render text with the line height equal to the TextBox/TextSize property. The “Code” font is the only monospace font. It has the unique property that each character has the exact same width and height ratio of 1:2. The width of each character is approximately half the TextBox/TextSize property.


Enums

Name Value Description

Legacy

0

The Legacy font style

Arial

1

The Arial font style

ArialBold

2

The Arial font style, but in boldface

SourceSans

3

The SourceSans font style

SourceSansBold

4

The SourceSans font style, but in bold face

SourceSansSemibold

16

The SourceSans font style, but in semi-boldface. Less bold than SourceSansBold but more bold than SourceSans

SourceSansLight

5

The SourceSans font style, but less boldface than the regular SourceSans font

SourceSansItalic

6

The SourceSans font style, but in italic

Bodoni

7

The Bodoni font style

Garamond

8

The Garamond font style

Cartoon

9

The Cartoon font style

Code

10

The Code font style

Highway

11

The Highway font style

SciFi

12

The SciFi font style

Arcade

13

The Arcade font style

Fantasy

14

The Fantasy font style

Antique

15

The Antique font style

Gotham

17

The Gotham Book variant of the Gotham font

GothamSemibold

18

The Gotham Medium variant of the Gotham font

GothamBold

19

The Gotham Bold variant of the Gotham font

GothamBlack

20

The Gotham Black variant of the Gotham font

Referenced by

  • TextService/GetTextSize
  • TextBox/Font
  • TextLabel/Font
  • TextButton/Font