Closed moebiussurfing closed 7 months ago
Are you using a version after or before this specific PR?
thanks @dimitre I was synced one month ago. now I did a pull and updated libs. it works as expected. ps: I saw this error appearing some time ago but I was not sure.
PS:
myFont.drawString(ss, x, y);
takes the 0,0 anchor point from the base of the font,
Is there a method/way to draw the text from the top left corner as the anchor reference?
if not, we just need to add the font size/height to y if we prefer this behaviour...
Hello, I found that
ofTrueTypeFont::getStringBoundingBox
does not include the '\n' aka brake lines and gets theofRectangle
width taking the paragraph as a single line. but the rectangle height looks being calculated well.So passing this string:
Is getting as output into the console:
1, 1, 5650, 214.2
Both modes when #if 0 or 1, show similar results...