Hi, Can we have a function that returns the size in pixels of a string, rendered using a given font. The width and height should be returned in a vector...
VECTOR* str_pixels(STRING* string, FONT* font).
Of course, if there are any current methods people know, then if you wouldn't mind sharing.
hey, font.dy stores the height of the font unfortunately str_width doesn't seem to be too accurate, and has even more problems when using bold and italic
The 'str_printf'/'str_width' method that jcl said should work. I'm currently doing this through C#, rather than lite-c, so i'm using a workaround and it works fine.