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

Home » Public Forums » archive » Font size and printing with TrueType fonts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Font size and printing with TrueType fonts [message #11233] Thu, 19 March 1998 00:00
Reinhold Schaaf is currently offline  Reinhold Schaaf
Messages: 10
Registered: March 1998
Junior Member
<HTML>
<TT>Hi everybody,</TT><TT></TT>

<P><TT>I want to produce printer output that contains not only plots, but
also a considerable amount of text, which has to be formatted in some way.
I want to use TrueType fonts in different sizes and styles. I am working
under Windows NT, my printer is a HP LJ 6L (no Postscript, no PCL).</TT><TT></TT>

<P><TT>I tried:</TT><TT></TT>

<P><TT>!P.FONT = 0</TT>
<BR><TT>SET_PLOT, 'PRINTER'</TT>
<BR><TT>DEVICE, FONT='Arial*24'</TT>
<BR><TT>XYOUTS, posX, posY, $</TT>
<BR><TT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 'Some Text', $</TT>
<BR><TT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; /NORMAL, $</TT>
<BR><TT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ALIGNMENT=0.5</TT>
<BR><TT>DEVICE, /CLOSE_DOCUMENT</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>which produced on my 600dpi printer a tiny text, because each character
is now 24 pixels in size. Of course I can scale the size in the DEVICE
command up, but what if the program is used with a 300dpi printer? The
FONT_SIZE keyword seems to work for postscript printers only.</TT><TT></TT>

<P><TT>So I am looking for a way how to define the size of the characters
such, that they are of a defined size, no matter what the resolution of
the printer is. What I need is a solution that does work for non-postscript,
non-PCL printers.</TT><TT></TT>

<P><TT>Thank you for any help</TT><TT></TT>

<P><TT>Reinhold</TT>
<BR><TT></TT>&nbsp;<TT></TT>

<P><TT>--</TT>
<BR><TT> ************************************************************ * </TT>
<BR><TT>&nbsp;Reinhold Schaaf</TT>
<BR><TT>&nbsp;Ettighofferstr. 22</TT>
<BR><TT>&nbsp;53123 Bonn</TT>
<BR><TT>&nbsp;Germany</TT><TT></TT>

<P><TT>&nbsp;Tel.:&nbsp; 0049-228-625713</TT>
<BR><TT>&nbsp;Email: schaaf@astro.uni-bonn.de</TT>
<BR><TT> ************************************************************ * </TT>
<BR><TT></TT>&nbsp;</HTML>
[Message index]
 
Read Message
Previous Topic: Re: SAVE/RESTORE problems
Next Topic: any Ray-Tracing lib around?

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

Current Time: Sat Oct 11 03:56:53 PDT 2025

Total time taken to generate the page: 1.44092 seconds