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 › characters and text in array
Page Index Toggle Pages: 1
characters and text in array (Read 564 times)
characters and text in array
Apr 16th, 2010, 4:39pm
 
hi,
my question is if i can effect same characters in a text. For example i like to increase/decrease the size or the stroke weight of same characters in a text. If in the text : "Hello world" char 'l' appears 3 times the second time the stroke will be 2 pt. and the third time 3 pt. and the same with char 'o'. What i am thinking now is to make an array of all characters. What i dont know is if it is possible to control characters in the serial line of a text..  :-/
should i use any text libraries?
i am stuck.
any ideas?
Re: characters and text in array
Reply #1 - Apr 17th, 2010, 12:57am
 
I doubt there is an easy solution. Each different font size will have different kerning (or GlyphMetrics), so even if you could set them in the same line it would look horrible.  I expect each character (of different font size) will need to be individually positioned.
Page Index Toggle Pages: 1