[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Font Size in SQR??
Tam,
Here's an example for a PS printer or SPF output (-printer:ps,
-printer:wp, or -keep):
begin-program
do main
end-program
begin-procedure main
alter-printer point-size=10
print 'Howdy' (1,1)
alter-printer point-size=20
print 'Podner' (10,1)
end-procedure ! main
Here's an example for an HP printer (-printer:hp):
begin-program
do main
end-program
begin-procedure main
alter-printer pitch=12
print 'Howdy' (1,1)
alter-printer pitch=6
print 'Podner' (10,1)
end-procedure ! main
I think that HP printers use pitch to determine size for fixed-pitch
fonts, while PS printers and SPF use point-size to determine size for
fonts.
This should work on all types of printers:
begin-program
do main
end-program
begin-procedure main
alter-printer point-size=10 pitch=12
print 'Howdy' (1,1)
alter-printer point-size=20 pitch=6
print 'Podner' (10,1)
end-procedure ! main
Ray
> I would like to ask can I use the Font = 5 at the first part of the report
> and then use Font = 8 at the middle partand then change back to font = 5
> agin in the last part?
> I try to change the font to bigger, but it can't change to smaller again!
>
>
>
> On Thu, 6 Jan 2000, Mark Risman wrote:
>
> > If you want to change the default font size or other similar attributes of the whole SQR, you can also use DECLARE-PRINTER (available in SQR 3 and up) or DECLARE PRINTER (deprecated in SQR 3 and up).
> >
> > - Mark
> >
> > -----Original Message-----
> > From: Ray Ontko [mailto:rayo@ONTKO.COM]
> > Sent: Thursday, January 06, 2000 8:21 AM
> > To: SQR-USERS@list.iex.net
> > Subject: Re: Font Size in SQR??
> >
> > Howdy,
> >
> > > I would like to ask that how to change the font to be bigger in
> > > SQR? My printer is Xerox 4215/MRP2!
> >
> > It appears that the Xerox 4215/MRP2 supports HP PCL and Adobe PostScript:
> >
> > http://www.mrsp.com/products/42154219/
> >
> > If you can figure out how to put the printer into PCL or PostScript
> > "mode", then you can use SQR with -printer:hp or -printer:ps to
> > generate PCL or PostScript output.
> >
> > Then, to change the font, use the ALTER-PRINTER command to change
> > the font-size, character-set, type-face, etc.
> >
> > Ray
> > ----------------------------------------------------------------------
> > Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
> > Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
> >
>
----------------------------------------------------------------------
Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/