font_gdi
This type represents a font object. Internally, this type uses GDI library to rasterize font glyphs.
__call๏ปฟ
Constructs a font object.
Arguments
Name
Type
Description
name
string
System font name (example: 'Arial').
size
float
Font height, in pixels.
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
local sys_font = draw.font_gdi('Calibri', 14);
Last updated