Font.getGlyph

Retrieve a glyph of the font.

class Font
const
getGlyph
(
dchar codePoint
,,
bool bold
,
float outlineThickness = 0
)

Parameters

codePoint dchar

Unicode code point of the character ot get

characterSize uint

Reference character size

bold bool

Retrieve the bold version or the regular one?

outlineThickness float

Thickness of outline (when != 0 the glyph will not be filled)

Return Value

Type: Glyph

The glyph corresponding to codePoint and characterSize.

Meta