How come to following code only works for text objects that don't have a font set (so it uses the standard / build in? gs3d font):
Code:
function list_addspaces(var maxcheck)
{
var length = str_len(mystring);
var addspace = clamp(maxcheck - length, 1, maxcheck);
var i;
for (i = 0; i < addspace; i++) str_cat(mystring, " ");
}
function writestrings()
{
...
list_addspaces(10);
...
}