setFont
draw.setFont()
Changes the text's font size and type.
draw.setFont(font size, font family)
font size
Number
Font size for the text.
font family
String
Font name to use (e.g., Arial
, monospace
, Courier New
).
draw.setFont()
Changes the text's font size and type.
draw.setFont(font size, font family)
font size
Number
Font size for the text.
font family
String
Font name to use (e.g., Arial
, monospace
, Courier New
).