[EmData] InData CS4 - Controlling Line Location of Line Breaks

Peter Fulton jpfulton248 at comcast.net
Mon Feb 16 10:39:58 EST 2009


I’ve been trying to figure out how to control line breaks. See below for an
attempt at a description of the problemo..

 

JP Fulton.................................... 248/123-4567(¬)

1154 Street Name Rd(¬)

City, State Zip(¶)

 

The only line that I have trouble with is the first
 some of the names are
much longer
 The phone number is formatted with a right align tab (b/c the
phone needs to be right aligned). When the name is too long it ends of
pushing the phone to the next line and it ends up left aligned.

 

If the name is too long it really needs to break like this.

 

JP Donald(¬)
Bartholomew Fulton............... 248/123-4567(¬)

1154 Street Name Rd(¬)

City, State Zip(¶)

 

Believe it or not, I have actually written a ridiculous amount of code that
actually measured all of the characters of the alphabet in order to
determine the length of the name. Each letter has it’s own value set into a
variable. The prototype then calls the variables and adds them as they
appear in the name. If the total is over a specified number (sum of value of
width of letters), the line breaks. This has proven to be imperfect (line
either doesn’t break or breaks unnecessarily) most likely due to variable
width fonts that I may choose to use in other sections of this project or
simply being a little off in my initial measurements.

 

I know this is extremely detailed and an extremely specific request, but any
help figuring out a method to make this work would be GREATLY appreciated.

 

Thanks a mil,

 

JP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://emsoftware.com/pipermail/data-users/attachments/20090216/cf0b921d/attachment.html


More information about the Data-users mailing list