Text
Command:
text "text-to-draw" sizeParameters:
size:
text-to-draw:
Description:
Example:
text "Hello, World!" 16
// Renders the text "Hello, World!" at the current draw cursor position with a font size of 16Explanation:
Centering text
Centering Text
Using the Font System
Changing Line Height
Example:
Changing Character Spacing
Selecting a Font
Loading a Font from a URL
Reverting to Default Font
Practical Examples
Rendering Text with Custom Font Size
Adjusting Line Height and Character Spacing
Using a Custom Font
Loading and Using a Font from a URL
Last updated