http://www.learningprocessing.com/exercises/chapter-17/exercise-17-7/
The second example is using textWidth:
x += textWidth(message.charAt(i));
So you can get the pixelNumber where your letter starts. In this way you can use letters of different sizes in the same bit of text.
Aucun commentaire:
Enregistrer un commentaire