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.
Page Index Toggle Pages: 1
Multiple fonts (Read 558 times)
Multiple fonts
Feb 27th, 2009, 12:30am
 
How do I create multiple fonts in the same file?
Any simple example of the code is fine.
If you prefer to see/use mine just ask.  
Thank you.
Re: Multiple fonts
Reply #1 - Feb 27th, 2009, 8:33am
 
I believe you cannot, unless you create your own font file format or modify/reuse Processing code.
Why do you need only one file? I suppose you can load several font files.
Re: Multiple fonts
Reply #2 - Feb 27th, 2009, 10:52pm
 
Hmm.. well I only wanted to make one letter a few sizes bigger. There's no way to do this?
I guess I can do something else I have in mind that will make the same effect though if it isn't possible.
Re: Multiple fonts
Reply #3 - Feb 28th, 2009, 12:36am
 
You can specify the drawing size of a font with the textSize command ( http://processing.org/reference/textSize_.html )so you only need the one font file (though make sure you create it in a larger size so it'll look okay both big and small)

You'll have to programatically work out how to draw the text right with one letter bigger than the rest.
Page Index Toggle Pages: 1