comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Vertical text alignment in postscript
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Vertical text alignment in postscript [message #54930 is a reply to message #54861] Wed, 18 July 2007 06:39 Go to previous message
Andy Heaps is currently offline  Andy Heaps
Messages: 22
Registered: March 2006
Junior Member
Many thanks for the replies - they were very useful.

The space that I was referring to is the spacing between text lines.
As I don't use more than one line of text at a time this wasn't
something I'd thought of.

To get a fairly decent approximation of the true height of true type
fonts in postscript I used the formula:
ypixels=!D.Y_CH_SIZE*charsize*0.84

Where ypixels is the height in pixels and charsize is size of the
characters passed to the xyouts procedure.
The scaling factor of 0.84 to get the best fit changes according to
the font used but 0.84 looks pretty good for Helvetica and Times.


Cheers
Andy
[Message index]
 
Read Message
Read Message
Previous Topic: Re: why is amoeba not working ??
Next Topic: Windows IDL in Parallels on a MacBook

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:07:00 PDT 2025

Total time taken to generate the page: 0.00667 seconds