Link to home
Start Free TrialLog in
Avatar of DCS12
DCS12

asked on

Font and Point size to print on AS400 to HP Printer

I am trying to get a few lines in my printer file to print a line in 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'm not sure if their is a font I can specify in the DDS of the printer file and/or if I am going to have to change the WSCST for HP8000.  I believe I have the ASCII Font string for each.  Example is s1o85v4s3b24580T.  

I am on V5R2.  Let me know if you need anymore information.

Thanks        
ASKER CERTIFIED SOLUTION
Avatar of DansDadUK
DansDadUK
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Gary Patterson, CISSP
Gary Patterson, CISSP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Notice that the sample FNTSTR values quoted in the example are:

1B28733170313276307330623431303154

which is the hexadecimal representation of:

{esc}(s1p12v0s0b4101T

where {esc} represents the non-graphic 'escape' control code character (the character with decimal code 27, or hexadecimal 1B, or octal 033).
Hi
you could also use the AFPDS printer file type that comes as standard - this can use standard fonts that are shippled with the iSeries


see

https://www.experts-exchange.com/questions/21351997/Font-issue.html

for a list of fonts.

Dave
Dave brings up a good point.  I only mentioned SCS, but regardless of the printer stream: AFPDS or SCS, both still rely on the same Host Print Transform function (and WSCST) to handle the font transformations.

- Gary
Avatar of DCS12
DCS12

ASKER

So how do I get one of these fonts into my printer file using the FGID?  Do you have an example?  I was able to get it to look similar by using FNTCHRSET(CZ6200  T1SKB001 (*POINTSIZE 90))  
You use FNTCHRSET with AFP.  

In your case, you're probably making the system do too much work: generate AFP that is just going to get transformed by HPT into PCL.  Just skip the AFP step and generate s simple SCS file with the FGID you want.

Here's the "bible" for AS/400 printer programming.  Explains ASCII printing, Host Print transform, font selection, the whole bit.  Includes sample code, and just about everything you need right in one place:

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/books/sc415713.pdf

- Gary Patterson
Avatar of DCS12

ASKER

It does not seem to matter what FGID I put as the font in the DDS or I just don't know what I'm doing.  Do I put the FGID as the Font keyword like this "FONT(159 (*POINTSIZE 90))"?    
When you want to print that big, you should use a scalable font.  To do that, you need to compile the printer file as an AFPDS file, and specify the outq or printer devd as AFPDS and TRANSFORM(*YES) and the proper WSCST containing the proper FGID to PCL font string mapping.

IBM has a nice support article related to what you are trying to do.  Remember that the FGID has to be mapped to a scalable printer resident font in your WSCST.

Is FGID 159 a scalable font that maps to a scalable printer-resident font on your printer?

http://www-912.ibm.com/s_dir/slkbase.NSF/1ac66549a21402188625680b0002037e/0691887df6ac2b0d862572de0064fde5?OpenDocument

- Gary Patterson


Avatar of DCS12

ASKER

Thanks for the help guys.  I did end up using FNTCHRSET(CZ6200 T1V10037 (*POINTSIZE 90)) with an AFPDS.