w = font:GetUnicodeWidth(code)
font:GetUnicodeWidth()
gets the width of a Unicode character in a specific font.
The actual width of the character on the page can be calculated as follows:
char_width = font:GetUnicodeWidth(font, UNICODE) actual_width = char_width * FONT_SIZE / 1000 |
Returns character width on success. Otherwise, returns Nil
.