Calculate the size of text.
text
UTF-8 text to read. JS strings are encoded for this call; a nonempty Uint8Array ending in NUL is passed directly, otherwise its bytes are copied and NUL-terminated.
Measured text extent: copied pixel dimensions {x: width, y: height}.
Implied text_end = null, hide_text_after_double_hash = false, wrap_width = -1.0
Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0
Calculate the size of text.