font_gdi
Last updated
Last updated
This type represents a font object. Internally, this type uses GDI library to rasterize font glyphs.
Constructs a font object.
Arguments
Name
Type
Description
name
string
System font name (example: 'Arial').
size
float
Font height, in pixels.
fl
Font flags. Use bit
library to construct them. Defaults to 0
.
mi
int
Starting codepoint. Defaults to 0
.
ma
int
Ending codepoint. Defaults to 255
(entire ASCII code page).
weight
int
Font weight. Defaults to 400
(regular).
Returns
Type
Description
font_gdi
Font object.
Example