I need to position numbers on 2D space so I wonder if is possible to get the width and height out of a string or int? if so how?
Any help will be much appreciated
I need to position numbers on 2D space so I wonder if is possible to get the width and height out of a string or int? if so how?
Any help will be much appreciated
if you are using a truetype font:
font.getStringBoundingBox("string",x,y);
will return an ofRectangle with the w and h
http://www.openframeworks.cc/documentation/graphics/ofTrueTypeFont.html#show-getStringBoundingBox
Muchas gracias!