Measuring strings in a shape.

A

Alon

Hi.
I encounter the following problem:
I have a shape with a defined width.
I have a text that should describe this shape. My problem is that I dont
know whether or wheather not the string's width fits the shape width.
For example:
The shape's width is 3 cm. The font of the text in the shape is 6 pt. size
and the text is "Do I fit the shape?".
My problem is that I want to know if the entire text's size is bigger then 3
cm. If this is the case, I need to know how many characters from it will fit
so to truncate it.
Thanks,
Alon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top