ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalu_5.4.0.1/rzalupfs.htm

190 lines
13 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<title>Printer font considerations</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzalupfs"></a>
<h4 id="rzalupfs">Printer font considerations</h4>
<p><span class="bold">Characters per inch versus font</span></p>
<p>Most SCS printers use the CPI parameter on the CRTPRTF, CHGPRTF, or OVRPRTF
command to determine the pitch (characters per inch) of the printed output.
However, the 3812, 3816, 5219, and all IPDS&trade; printers use the FONT parameter to select
both an implied pitch (characters per inch) and a font style. For these printers,
the CPI parameter is ignored except when converting the page size (PAGESIZE)
from *UOM to *ROWCOL. Conversely, the FONT parameter is ignored on printers
where it is not applicable.</p>
<p>To provide flexibility in your print job, the pitch of the font identifier
(FONT parameter) should match, where possible, the value specified on the
CPI parameter. By setting the FONT parameter to FONT(*CPI), the system selects
a font of the same pitch as the CPI parameter value. A print job intended
for a printer that supports fonts can then be printed on another printer without
significant change in the appearance of the printed output. For example,
a printer file that has FONT(222), Gothic font with 15 pitch, and CPI(15)
could print on a 3812, 4224, or 5219 Printer (which uses the FONT parameter)
or also could print on a 4214, 4230, 4234, 4247, 5224, or 5225 Printer (which
supports 15 characters per inch). If this print job were directed to a printer
that only supports 10 characters per inch, then printer file redirection would
be used.</p>
<p>For more information about redirecting spooled files to SCS printers, go
to <a href="rzalupfr.htm#rzalupfr">Redirecting output considerations</a>.</p>
<p>When using an SCS externally described printer file, normally the value
specified in the CPI parameter is used to position fields on the printed page.
For example, if a printer file has 10 characters per inch specified, and
FIELDA is specified to start in column 51, then there would be 50 blanks to
the left of FIELDA (50 blanks at 10 characters per inch is 5 inches).</p>
<a name="wq139"></a>
<div class="fignone" id="wq139">
<div class="mmobj">
<img src="rslh114.gif" alt="If a printer file has 10 characters per inch specified, and FIELDA is specified to start in column 51, then there would be 50 blanks to the left of FIELDA (50 blanks at 10 characters per inch is 5 inches)." /></div></div>
<p>For the IPDS externally described printer files, the pitch implied by the FONT
parameter on the CRTPRTF, CHGPRTF, and OVRPRTF commands is used instead of
the CPI parameter or the value of the FONT DDS keyword to determine the starting
column of fields on a printed page. In the example above, if CPI(10) and
FONT(087) had been specified, and the printer specified was one that supports
fonts, then FIELDA specified to start in column 51 would be 50 blanks at 12
characters per inch (implied CPI value for font 087) or 50/12 inches, which
is 4.167 inches in from the left margin of the paper. The default for FONT
is (*CPI). When *CPI is selected, the i5/OS program automatically selects
a font of the pitch specified on the CPI parameter.</p>
<p><span class="bold">Proportionally spaced and typographic fonts</span></p>
<p>All IPDS printers support proportionally spaced fonts. For proportionally
spaced fonts, characters vary in width depending on the character being printed
(for example, <span class="bold">i</span> is a narrow character, and <span class="bold">W</span> is a wide character). See <a href="rzalureffontsub.htm#rzalureffontsub">AFP compatibility fonts and font substitution</a> for a list
of all supported fonts. The implied characters-per-inch column in this table
lists the value of the width of a blank character for the font selected.</p>
<p>When using proportionally spaced fonts, fold and truncation (FOLD parameter)
might not work as intended. This is because the system does not keep track
of the width of each individual character.</p>
<p>The following printers also support typographic fonts: the 3812, 3130,
3160, 3816, 3820, 3825, 3827, 3829, 3831, 3835, 3900, 3916, 3930, 3935, 4028,
4312, 4317, 4324, InfoPrint 3000, and the InfoPrint 4000. You can specify
a typographic font by indicating point size (height of font). A point measures
1/72 of an inch. An 8-point font would be 1/9 of an inch high, and a 24-point
font would be 1/3 of an inch high. When using fonts that contain tall characters,
it might be necessary to double or triple space, to avoid having lines overlap
when printing the page.</p>
<p>Because proportionally spaced and typographic fonts have characters of
variable widths, care should be taken with the use of underlining and overstriking.
The highlighting or underlining method of printing a line with a space after
(SPACEA) value of 0 followed by printing another line might not work correctly.</p>
<p>Proportionally spaced and typographic fonts can be specified on the CRTPRTF,
CHGPRTF, or OVRPRTF command when using an externally described printer file.
The point size can be specified for typographic fonts. The point size is
ignored for fonts that are not typographic. As noted above, the implied characters-per-inch
value of the font identifier specified on the FONT parameter is used to position
fields on a printed page. The same rule for positioning fields on a printed
page is used with proportionally spaced and typographic fonts. The width
of a blank character is used to position fields on a page. Output should be
tested to see that using externally described printer files with proportionally
spaced fonts produces satisfactory results because overprinting and gaps can
occur in the output. Because of slight adjustments made for position checks,
it is recommended to not print on line 1 when specifying 8 or 9 LPI on an IPDS printer. </p>
<a name="wq140"></a>
<div class="notetitle" id="wq140">Note:</div>
<div class="notebody">The amount of printed space for a field varies
depending on which characters are in a field. Enough space should be left
between fields to allow for the widest characters (uppercase characters) expected
in that field.</div>
<p>In the previous example, if CPI(10) and FONT(1351) had been specified,
and the printer used was a 3812 Printer, then FIELDA specified to start in
column 51 would be 50 blanks at 17.14 characters per inch (implied CPI value
for font 1351) or 50/17.14 inches, which is 2.975 inches from the left margin
of the paper.</p>
<p>In this example, FIELDA would start 2.975 inches from the left margin of
the paper regardless of how many fields were defined to its left. When using
an increment value (+n) instead of a column number (positions 42 through 44
in DDS specification), fields are positioned the same for proportionally spaced
fonts as they are for fixed pitch fonts. That is, the field is positioned
based on the width of the blank for the specified font. The following example
illustrates that using either absolute column numbers or relative increment
numbers (+n) will supply the same result.</p>
<a name="wq141"></a>
<div class="fignone" id="wq141">
<div class="mmobj">
<img src="rslh115.gif" alt="Using either absolute column numbers or relative increment numbers (+n) will supply the same result." /></div></div>
<p><span class="bold">Font substitution</span></p>
<p>If the font identifier specified on the FONT parameter is not supported
by the printer being used, printer data management selects a substitute font
that is supported by the printer (if possible). A substitute font is at the
same pitch or a higher pitch whenever possible to ensure that as much data
as possible fits on the printed page. For a complete list of fonts supported
and the substitute font selected for each printer that supports the FONT parameter,
see<a href="rzalureffontsub.htm#rzalureffontsub">AFP compatibility fonts and font substitution</a>. If a substitute font cannot be used, spool
redirection is done. An inquiry message is sent to the message queue associated
with the device or printer writer. The inquiry message gives you the option
of holding or printing the file. If the print option is used, then the spooled
file is reformatted with the print attributes of file QPSPLPRT. Output might
not look as intended. Refer to the printer's reference manual for information
on what conditions cause the substitute font to not be used.</p>
<p>For the SCS 3812, 3816 and 5219 Printers, font substitution can be made
only at the file level. For font changes made in the document, font substitution
is not done. In this case, spool redirection (described previously) is used.</p>
<p><span class="bold">IPDS printer FONT parameter considerations</span></p>
<p>When a printer has AFP(*YES) specified in the printer device description
and the DEVTYPE specified for the printer file being used is *AFPDS, the FNTCHRSET,
CDEPGE, and CDEFNT printer file parameters can be used to select a font resource
to be downloaded to the printer. This applies to all IPDS printers except
the 4224, 4230, 4234, 4247, and 64xx. If these parameters are not used, then
the value specified in the FONT printer file parameter is used.</p>
<p>When FONT(*DEVD) is specified on the CRTPRTF, CHGPRTF, and OVRPRTF commands,
the following limitations are imposed: </p>
<ul>
<li>Bar codes are positioned on the page assuming a 10-pitch font is specified
in the device description.</li>
<li>When using a combination of bar code (BARCODE), page rotate from a printer
file or DDS (PAGRTT), and character size (CHRSIZ) parameters in an externally
described printer file, unpredictable results might occur. This is because
the printer device FONT parameter value is not known when the spooled file
is created.</li>
<li>The data stream created might be longer than if a specific font were selected.
This means the spooled file might take more storage in the output queue. Fields
are positioned with spaces (hex 40) between them instead of using commands
to specify the location where a field is to be placed.</li>
<li>If a proportionally spaced font is used with a field in the file, any
following fields might not be positioned in the column used if a specific
font were specified at the file level. This is caused by the variable width
of the characters in the proportionally spaced font, which are followed by
spaces (hex 40) to position the next field.</li>
<li>If the value of the FONT parameter on the printer device description is
*DEVD or 0, font 011 is selected.</li></ul>
<p>The maximum number of fonts that can be sent to a printer file is 48. When
more than 48 fonts are requested, an error message is sent.</p>
<p>A slight adjustment is sometimes made to the first or last line of a page
when the lines per inch (LPI) parameter value is greater than 6. This adjustment
prevents IPDS printers from reporting position check errors due to part of a character
printing off the top or bottom of the page. For the first line on a page,
a slight downward adjustment is made. For the last line on a page, a slight
upward adjustment is made. This adjustment is about 1/72 of an inch. No other
lines on the page are adjusted. This adjustment is made only for spooled files
with DEVTYPE of *SCS or *IPDS when printed on IPDS-capable printers. It is
recommended that the first line on a page not be used for printing if the
lines per inch (LPI) parameter on the printer file is 8 or greater. </p>
<a name="wq142"></a>
<div class="notetitle" id="wq142">Note:</div>
<div class="notebody">If an optical character recognition (OCR) font is specified with
a non-OCR code page, the code page is changed to an OCR code page. If a non-OCR
font is specified with an OCR code page, the font is changed to an OCR font.</div>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>