计算文本尺寸。
text
要读取的 UTF-8 文本。JS 字符串为本次调用编码;非空且以 NUL 结束的 Uint8Array 直接传入,否则复制字节并补上 NUL。
测量的文字范围的像素尺寸副本 {x: width, y: height}。
文本工具。
隐含参数: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
计算文本尺寸。