Quantcast
Viewing all articles
Browse latest Browse all 1768

Re : Scaling text



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"

Image may be NSFW.
Clik here to view.



Viewing all articles
Browse latest Browse all 1768

Trending Articles