il 26.03.2010 13.16, Scrive Falco 43207224:
> I am trying to get a few fields in my printer file to print Helvetica
> 85-Pt and also 90-Pt or something similar. I don't have PSF/400 so I
> can not use IPDS. I am printing to a HP8150 using HPT HP8000. I am
> not very familiar with fonts nor am I with WSCST. Is there a font I
> can specify in the DDS of the printer file or I am going to have to
> change the WSCST for HP8000 or is there a way to send an embed the
> printer control commands. I believe I have the ASCII Font string for
> each. I have "s1o85v4s3b24580T" for the Helvetica 85-Pt.
The simplest way is to use an hostfont either raster or outline (vector
font) Helvetica font family is part of IBM AFP Font Collection (now it
has a different name) and is fully compatible with HPT. If you have not,
you can still use CZ6200 that's an outline font present in QFNTCPL
library, that's part of os400, but it's not installed as a default,
check dspsfwrsc command and see whether 5722SS1 option 8 is there.
CZ6200 is not Helvetica, but maybe you'll like it as well, just try.
In your printerfile you can specify the font with the keyword
FNTCHRSET, e.g.:
FNTCHRSET(CZ6200 T1001144 (*POINTSIZE 90))
where T1001144 is the italian code page with euro symbol, search in
QFNTLIBRARY for a suitable code-page of choice.
Object of type *FNTRSC with CDEPAG attribute in library QFNTCPL are
code-pages. To use FNTCHRSET keyword and print via HPT you must specify
DEVTYPE(*AFPDS) in your printerfile.
Keep in mind that in an inch there are 72 points, so specifying 90
points will print 1.25 inches tall characters, so it will span about 8
lines at 6 LPI; if you are using row/col positioning you must consider
this, otherwise you can use POSITION keyword to place the printerfile
field anywhere.