Skip to content

Files

Latest commit

 

History

History
32 lines (25 loc) · 567 Bytes

Font.md

File metadata and controls

32 lines (25 loc) · 567 Bytes

Font

Fonts can be loaded from .ttf files. The engine only supports ASCII characters.

Inheritance:


GetSize

Get the font size.

Sig: size = Font:GetSize()

  • Ret: integer size Font size

GetTexture

Get the font texture.

Sig: texture = Font:GetTexture()

  • Ret: Texture texture Font texture

IsBold

Check if the font is bold.

Sig: bold = Font:IsBold()

  • Ret: boolean bold Is font bold

IsItalic

Check if the font is italic.

Sig: italic = Font:IsItalic()

  • Ret: boolean italic Is font italic