Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Scaling text

$
0
0


I'd thought that
  1.   textAlign(CENTER,CENTER);
does this... why not?

You can use textwidth and textheight (does it exist??) and say

  1.   text("a", width/2 - textwidth ("a") / 2 , height/2 - textheight ("a") / 2  );

(not tested)

textwidth and textheight (does it exist??) should know the current size of your "a"




Viewing all articles
Browse latest Browse all 1768

Trending Articles