drawStringAsShapes() new line fix?

after playing around with the ofTrueTypeFont class (which I think is really great) i encountered a bit of a problem. drawStringAsShapes() can only draw text on two lines, not more. So I checked out the source and found:

  
  
if (c[index] == '\n') {  
  
	Y = lineHeight;  
	X = 0 ; //reset X Pos back to zero  
}  
  

Surely this should be:

  
  
if (c[index] == '\n') {  
  
	Y += lineHeight;  
	X = 0 ; //reset X Pos back to zero  
}  
  

After this tiny tweak it works perfectly. Just thought I would let you know about this, I am not sure if you did it the way you did intentionally or not.

And as this is my first post, I have to say thank you for oF. It’s truly amazing.

thank you for the find!
I created a bug report on the oF github: https://github.com/openframeworks/openF-…-issues/483