- size-unicode font unicodeprocedure
Calculate the size of the surface that would be created if you rendered the given 16-bit Unicode encoded text using the ttf:font. See TTF_SizeUNICODE.
Returns two values, the calculated width and the height, as integers.
This is much faster than actually rendering the text, so you can use this to quickly predict how much space would be needed. This is useful for calculating word wrapping, alignment, truncation, etc.