Midrange News for the IBM i Community


Posted by: renojim
Can't change font size with OVRPRTF
has no ratings.
Published: 22 May 2015
Revised: 26 May 2015 - 1000 days ago
Last viewed on: 19 Feb 2018 (2366 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Can't change font size with OVRPRTF Published by: renojim on 22 May 2015 view comments(2)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: DaleB
Premium member *
Reading, PA
Comment on: Can't change font size with OVRPRTF
Posted: 2 years 9 months 5 hours 58 minutes ago

Looks like 2308 is Times New Roman, TrueType. Been awhile since I had to look for this, but I think it's in the joblog of either the printer driver job or the actual writer, ...maybe QSYSOPR. There may be messages about font substitution. If the font is not installed, or not available on the printer, then the system will substitute something that's close. If that's happening, it's possible that the font that's substituted may not react to the change in point size.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Can't change font size with OVRPRTF
Posted: 2 years 8 months 27 days 9 hours 30 minutes ago
Edited: Tue, 26 May, 2015 at 06:45:48 (1000 days ago)

Font size is based on the Unit of Measure being Inches, regardless of what the UOM parameter indicates.

Setting the CPI to CPI(13.3) will generally work for 8pt fonts. I believe the minimum is CPI(5) but that's going in the opposite direction for an 8pt font.

Also, look at the Page Size. if the page size UOM is *ROWCOL, then the number of columns should be (at least):

If PAGESIZE(Y X *UOM)
Columns per row = (pageWidth - pageMargin) * CPI;
ELSEIF PAGESIZE(Y XY *ROWCOL)
Inches per row = (pageWidthCol - PageMarginCol) / CPI;
endif;