Question & Answer
Question
Is it possible to increase the size of the Human Readable Interpretation (HRI) that is printed for bar codes? A point size of 18 is desired.
Cause
The BARCODE (Bar Code) DDS keyword is used to specify the bar code and the HRI. There are parameters in the BARCODE DDS keyword to control the size of the bar code. However, the Human Readable Information (HRI) uses a default font, so there is no way to control the font or the font size used to print the HRI.
Answer
This issue can be resolved by changing the BARCODE (Bar Code) DDS keyword to specify *NOHRI, so the HRI is no longer printed with the bar code, then creating another field to print the HRI information as text using the FONT (Font), FNTCHRSET (Font Character Set) or CDEFNT (Coded Font) DDS keyword to specify whatevern font or characters per inch (CPI) that you want to use for the "human readable information".
Specifying a Scalable Font for an IPDS-Capable or PCL-Capable Laser Printer
If using Print Services Facility/400 (PSF/400) to print on an IPDS-capable laser printer or using Host Print Transform (HPT) to print on a PCL-capable laser printer, then you can use the FONT (Font) DDS keyword to print this text field in font 416, which is a scalable Courier Roman Medium font, with a particular point size.
For example, to use font 416 at 18 point, you would specify:
FONT(416 (*POINTSIZE 18))
Specifying a Font for an IPDS-Capable Line Matrix Printer
If using Print Services Facility/400 (PSF/400) to print on an IPDS-capable line matrix printer, then you can use the FONT (Font) DDS keyword to to print this text field using the default font ID for a given font pitch that is supported on your IPDS line printer:
| Font Pitch* | Font Range | Default Font ID | Font Name |
| 5 | 240 - 246 | 245 | Courier 5 |
| 10 | 1 - 65 | 11 | Courier 10 |
| 12 | 66 - 153 | 87 | Letter Gothic 12 |
| 13.3 | 201 - 210 | 204 | Matrix Gothic 13.3 |
| 15 | 211 - 239 | 222 | Gothic 15 |
| 16.7 | 247 - 257, 274 - 279 and 300 - 400 | 400 | Gothic 17 |
| 18 | 258 - 259 | 252 | Courier 17 |
For example, to print the text for the human readable information at 18 CPI, you would specify:
FONT(252)
For More Information (References)
For more information, please refer to the following documents:
N1010119: List of Default Font IDs Based on Font Range
N1018880: Printing Scalable Fonts through Host Print Transform (HPT)
Also, please refer to the System i Programming DDS for Printer Files publication:
and the iSeries Printer Device Programming V5R4 (SC41-5713-06) publication:
Historical Number
23750518
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1020273