IBM Support

Changing the Size of the Human Readable Information (HRI) on a Bar Code

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 RangeDefault Font IDFont Name
5240 - 246245Courier 5
101 - 6511Courier 10
1266 - 15387Letter Gothic 12
13.3201 - 210204Matrix Gothic 13.3
15211 - 239222Gothic 15
16.7247 - 257, 274 - 279 and 300 - 400400Gothic 17
18258 - 259252Courier 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:
7.2http://www-01.ibm.com/support/knowledgecenter/api/content/ssw_ibm_i_72/rzakd/rzakdpdf.pdf
7.1http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_71/rzakd/rzakd.pdf
6.1http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_61/rzakd/rzakd.pdf
5.4http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/rzakd/rzakd.pdf

and the iSeries Printer Device Programming V5R4 (SC41-5713-06) publication:
7.2http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/books/sc415713.pdf
7.1http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/books/sc415713.pdf
6.1http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/books/sc415713.pdf
5.4http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/books/sc415713.pdf

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Historical Number

23750518

Document Information

Modified date:
18 December 2019

UID

nas8N1020273