getbounds for character string
Hi everyone,
I need to make a horizontal scrolling text patch, and I want to get the length of a text file (string of characters) so that I can appropriately set its initial position in the jit.gl.text2d object.
I literally saw this done a few days ago, but didn't have the chance to copy the patch and now I can't recreate it. Any takers?
Thanks!
you may have more success using gl.text3d, and the querying the @bounds attribute with the getbounds message.
you also have to set @boundcalc 1 for this to work.
thanks rob for this hidden message !
o documentation would be nice ;-)
it would be great to do soft wraping text with jit.gl.text2d or jit.gl.text3d.
i tyed it with the also undocumented bound message.
the only way i found, is to do this in jit.mgraphics by checking every single characters position and do the linebreaks "by hand".
thanks,
pc