Howdy,

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);
  ...
}



I want to use this for a big list.

Last edited by Reconnoiter; 05/16/15 13:57.