How to use font sizes and graphic tools in AS/400 V5R4 series

15 pts.
Tags:
AS/400 3rd party tools
AS/400 administration
AS/400 Display File
V5R4
In as/400 v5r4, so many tools are their for fonts. how to use the font sizes and how to allow graphic tools in display files

Answer Wiki

Thanks. We'll let you know when a new response is added.

Your post asks about fonts and graphics in a DSPF – which would mean use in 5250 emulation. Fonts and graphics do not work in DSPF, but they do work in PRTF files. Assuming that is what you meant, you need the following tools:

IBM AFP and related licensed products.
IBM Font Support and related licensed products.
IBM Client Access for Windows – This is not required, but has free tools for creating, editing and viewing OVERLAY and PAGESEG.

Creating OVERLAY’s & PAGESEG using IBM Client Access for Windows is detailed in the hypertext (HELP) along with a number of REDBOOK’s from IBM.

Using FONTS in a PRTF looks like this in the DDS

A R LINE1 FONT(0001)
A FONT 4A 1SPACEA(1)
A UPPER 26A 1SPACEA(1)
A NUMBE 10A 1SPACEA(1)

The FONT number can be specified in the record format you want to write or in the field level.

A R REC1
A 6 10FONT(5)
A ‘RHETORIC ORATOR FGID 5′
A 8 10FNTCHRSET(FXFONTSTD/SWIS014
A QFNTCPL/T1V10037)
A ‘SWISS 14 POINT BOLD +
A FONT CHAR SET SWIS014B’
A 10 10CDEFNT(QFNTCPL/X0BIR1)
A ‘BOOK ITALIC 10 PT +
A CODED FONT X0BIR1′

Some FONT numbers can have POINT SIZE added to them.

A R PR0001
A TEST1 35A 1 2FONT(0124 (*POINTSIZE 8))

Using OVERLAYS

A R OVRLY
A OVERLAY(*LIBL/&OVR &DN &AC)
A OVR 8A P
A DN 5S 3P
A AC 5S 3P

OVERLAYS are full page templates that can cover the page. In this example, the name of the OVERLAY is &OVR, which is a variable name (OVR) in your program. It is followed by X (DN) & Y (AC) grid coordinate variables for alignment. You are limited to one OVERLAY per side of a page.

Using PAGESEG

A R PRTSEG
A PAGSEG(&SEG &DN &AC)
A SEG 8A P
A DN 5S 3P
A AC 5S 3P

Page Segments work just like OVERLAYS, except you can have up to 10 of them on a page (V5R1)

FYI, if your printing to a non-IPDS printer using HOST TRANSFORM, your printed results could be different then what you would get printing to a real IPDS capable printer. I would recomment NOT hard coding your GRID coordinates so you can externally adjust your printout based on the printer your using.

Good Luck

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following