Changing the font size of individual letters

Hi everyone

I’m making a visualization for a legibility experiment where the size of the individual letters is of importance. Loading an OTF font requires me to specify a font size that will be used to render textures for each glyph in the font. So far so good.

I want to create an effect like the icon dock in Mac OSX, having the letters increase in size when the mouse is over them. One way to do that is by extending the ofTrueTypeFont class and dropping some ofScale calls before rendering each letter. But there must be a better way! Any pointers?

I want to scale them in a controlled fashion – keeping the baseline is important, for example.


maybe you can check these addons:

it has faster font render and some customize styling.
In the examples, you can see how you can easily perform the resize by mouse.