#PCL 5 Word Wrap
4 messages in this thread
Can anyone help with the following problem I am having?
I am writing a C program that reads and ascii text file and creates
a multi column pcl per page pcl document. My problem is that I am
not sure how I can reliably determine when I am at the end of a line
in order to hypenate a word and jump to the next line when using
proportional fonts. Can anyone offer any suggestions?
Thanks,
Jim
James
You can contact HP directly and try to get their font metrics (maybe Annie will
be nice and give that number to you <g> )
The auto line wrap command is <esc>&s1C ( 0C for off). This might be a simple
solution for you.
Scott,
Thanks much. I will try contacting hp to get font meterics.
The auto line wrap command to which you refer, do you think it would work in my
situation? I am
basically creating a program that condenses an ascii text file into a multi
column per page report,
there printing multiple logical pages on one physical page. What do you think?
Thanks,
Jim
Depends
If you're using a proportional font, you'll have a hard time (impossible)
lining things up if you simply rely on spaces as your column start/stop points.
If you can write a fancy printf (been a while since C, so bear with me)
statement that would take advantage of the positioning code (<esc>*p???X), you
can use any font you want (as long as it'll fit on the page). The positioning
command is an absolute, so fonts don't matter.
Maybe Irv will pop in with a sales pitch for Sizeit which is a utility that
takes ascii type files and lines 'em up in columns when you use a proportional
font. (Check Library 2 for Sizeit info)