We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Can I use more Fonts in a sketch
Page Index Toggle Pages: 1
Can I use more Fonts in a sketch (Read 811 times)
Can I use more Fonts in a sketch
May 2nd, 2010, 1:23am
 
Hey poeple,

Is it possible to use more FONTS in a sketch?
(I want to display different words in different fonts)

When yes, whats the cleverst way?

Re: Can I use more Fonts in a sketch
Reply #1 - May 2nd, 2010, 2:24am
 
Just create several PFont objects, stored in an array if you really have many.
And use textFont() before each text() call needing a different font.
Re: Can I use more Fonts in a sketch
Reply #2 - May 2nd, 2010, 5:29am
 
Thanks!

Its working :]
Page Index Toggle Pages: 1