Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpl2i()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpL2I()

Converts vertical line position to inches


Syntax

hpL2I(<nLine>)


Parameters

<nLine>
The row coordinate to convert to inches.


Returns

<n>
Inch equivalent of row coordinate.

-10
ESC_FONT was not initialized, or was released.

-12
Wrong number of parameters passed.


Remarks

Proportional fonts always look nice, but they are almost impossible to
work with when writing reports. We have found that the only reasonable
way to get proportional text to line up correctly is to specify its
horizontal position in inches, rather than in number of characters.  You
can, however, continue to specify vertical position by line number.  With
this in mind, and the Escape! functions at hand, proportional fonts can
be a breeze.

Note:  To see how hpL2I() is used to help create box shadows, see the
function hpBoxShadow() in the file HPFONTS.PRG which is included on
your distribution diskette.


Support By

All HP Laserjet Printers


Example

See how you can combine hpL2I() with hpIAtSay() to get some quick and
easy results:

hpPrintOn()
hpConfig('LEGAL')
hpSetFont('TMSRMN 8', 'F')
nLine := 1
DO WHILE .NOT. EOF()
  .
  .
  .

See Also: hpC2I() hpIAtSay() hpS2I()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson