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 & HelpSyntax Questions › length of a displayed text
Page Index Toggle Pages: 1
length of a displayed text (Read 278 times)
length of a displayed text
Nov 13th, 2008, 8:30am
 
Hey,
Is there a possibility to get the length and height of an already displayed text.
So that i can read out the dimensions of a specific word or character displayed in a specific fontface in pixels.

Or, to prevent me from redundant work, does anybody know a website were I can download a little programm that converts a fontface in jpgs, character by character?

thanks a lot!!
Re: length of a displayed text
Reply #1 - Nov 13th, 2008, 8:57am
 
http://processing.org/reference/textWidth_.html

F
Re: length of a displayed text
Reply #2 - Nov 13th, 2008, 9:02am
 
perfect!

Re: length of a displayed text
Reply #3 - Nov 13th, 2008, 9:42am
 
ahhh ! the one i was looking for ! thanks

Page Index Toggle Pages: 1