Font

Native font.

Modulerequire("yue.gui")
TypeClass

Class methods

default()

Return the default font used for displaying text.

Return

Font

create(name, size, weight, style)

Create a Font implementation with the specified name, DIP size, weight and style.

Parameters

Return

Font

Methods

getname()

Return font's family name.

Return

string

getsize()

Return font's DIP size.

Return

number

getweight()

Return the font weight.

Return

Font::Weight

getstyle()

Return the font style.

Return

Font::Style