Forums > MaxMSP

dynamically change fontsize in textedit

April 4, 2011 | 6:21 pm

Hi,

I’ve search in the forum for an answer but didn’t find anything…
I try to change the font size of a textedit object with a number box attached to a message (fontsize $1).
It works (the font size changes) but the size of textedit is affected too and I want it to have and keep a predefined size.
I’d appreciate some help !

Ps: I’m a newbie …


April 4, 2011 | 7:42 pm

This is currently just how textedit works. As a bit of a workaround, you can set the object’s rect just after you set the font size, something like this:

– Pasted Max Patch, click to expand. –

April 4, 2011 | 8:36 pm

Hi Ben,

Exactly what I was looking for …
Thank you so much !!!


Viewing 3 posts - 1 through 3 (of 3 total)