15 pts.
 How to use font sizes and graphic tools in AS/400 V5R4 series
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

Software/Hardware used:
ASKED: February 28, 2009  8:32 AM
UPDATED: August 25, 2009  4:28 PM

Answer Wiki:
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
Last Wiki Answer Submitted:  August 25, 2009  4:28 pm  by  DHanneman   200 pts.
All Answer Wiki Contributors:  DHanneman   200 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _