[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Print with italic font
Fredrik,
> I have a very short question which I hope someone can give me a quick
> answer to:
> How do I do to print text in my reports with italics.
> I use SQRW version 4.0 and print on a Postscript printer.
Unfortunately, SQR doesn't support italics directly.
If you can get away with it, consider using UNDERLINE instead.
If you _must_ have italics, and you're willing to embed some postscript
in the report, then you'll need to do something like this:
print 'Here is some normal text' (1,1)
print-direct printer=ps 'gsave'
print-direct printer=ps '/Courier-Oblique findfont 12 scalefont setfont'
print 'Here is some italic text' (2,1)
print-direct printer=ps 'grestore'
print 'Here is some normal text' (3,1)
Note that this will show as plain text in the SQR Viewer, but
will show correctly on the printer.
Hope this helps.
Ray
----------------------------------------------------------------------
Ray Ontko | Ray Ontko & Co | "Time for a new signature line."
rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/