205 lines
11 KiB
HTML
205 lines
11 KiB
HTML
<?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 lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<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))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="FONT (Font) keyword in printer files" />
|
|
<meta name="abstract" content="Use this record- or field-level keyword to specify the font ID for printing a named or constant field or fields within a record." />
|
|
<meta name="description" content="Use this record- or field-level keyword to specify the font ID for printing a named or constant field or fields within a record." />
|
|
<meta name="DC.subject" content="FONT (Font) keyword" />
|
|
<meta name="keywords" content="FONT (Font) keyword" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakdmstptcpi.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzakdmstzfont" />
|
|
<meta name="DC.Language" 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. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>FONT (Font) keyword in printer files</title>
|
|
</head>
|
|
<body id="rzakdmstzfont"><a name="rzakdmstzfont"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">FONT (Font) keyword in printer files</h1>
|
|
<div><p>Use this record- or field-level keyword to specify the font ID
|
|
for printing a named or constant field or fields within a record.</p>
|
|
<div class="section"><p>The format of the keyword is:</p>
|
|
<pre>FONT(font-identifier | &font-identifier-field
|
|
[(*POINTSIZE height-value | &height-value-field
|
|
width-value | &width-value-field)])</pre>
|
|
<p>The font-identifier
|
|
is a required parameter and must be the first parameter following the keyword.
|
|
Specify either a numeric font identifier or a graphic font name, or *VECTOR.</p>
|
|
<p>You
|
|
can specify the font-identifier as a constant or program-to-system field as
|
|
shown in the following examples:</p>
|
|
<ul><li><samp class="codeph">font-identifier...</samp></li>
|
|
<li><samp class="codeph">&field1...</samp></li>
|
|
</ul>
|
|
<p>When you specify the font-identifier as a program-to-system field,
|
|
the field must exist in the same record format as the FONT keyword. It must
|
|
be defined as length of 10, data type A (character), and usage P (program-to-system).</p>
|
|
<p>For
|
|
scalable printer-resident fonts, you can use the optional point-size parameter
|
|
to further define a numeric font that specifies a point size. Specify the
|
|
point-size parameter as an expression of the following form:</p>
|
|
<pre>(*POINTSIZE height-value width-value)</pre>
|
|
<p>The
|
|
height-value specifies the point size for the height of the font. The width-value
|
|
specifies the point size for the width of the font. If the font is to be uniformly
|
|
scaled (where the height and width are the same), then you can specify only
|
|
the height-value. You cannot specify the width-value without the height-value.
|
|
The valid values for this parameter are 0.1 through 999.9.</p>
|
|
<p>You can specify
|
|
the point-size height and point-size width as constants, as program-to-system
|
|
fields, or as a combination of both, as shown in the following examples:</p>
|
|
<ul><li><samp class="codeph">[(*POINTSIZE height-value &field1)]</samp></li>
|
|
<li><samp class="codeph">[(*POINTSIZE &field2 width-value)]</samp></li>
|
|
</ul>
|
|
<p>When you specify the point-size height-value or width-value as a program-to-system
|
|
field, the fields must exist in the same record format as the FONT keyword.
|
|
They must be defined as length 4 with 1 decimal position, data type S, and
|
|
usage P (program-to-system).</p>
|
|
<p>For non-scalable printer-resident fonts,
|
|
the point size parameter is ignored.</p>
|
|
<p>For DEVTYPE(*IPDS), the width parameter
|
|
of the point size is ignored.</p>
|
|
<p>A warning message is issued at create
|
|
time if you specify the point-size parameter on the FONT keyword with a graphic
|
|
font name, or *VECTOR. In that case, the point-size parameter is ignored.</p>
|
|
<p>If
|
|
you do not specify this keyword, the font ID and point size are set by the
|
|
font parameter on the CRTPRTF, CHGPRTF, or OVRPRTF command. If you specify
|
|
this keyword at the record level, all fields in the record format use the
|
|
same font ID and point size except those for which you specify the FONT keyword
|
|
at the field level.</p>
|
|
<p>You can specify graphic fonts (alphanumeric characters)
|
|
or hardware fonts (numeric font identifiers). For graphic fonts, use graphic
|
|
symbol sets (GSS) available with an <span class="keyword">iSeries™</span> server, GDDM<sup>®</sup>,
|
|
PGR, and BGU. Only vector symbols (where each character is built with a set
|
|
of straight or curved lines) are supported; however, most of the vector symbol
|
|
sets supplied by an <span class="keyword">iSeries</span> server
|
|
and GDDM are
|
|
supported. Image symbols are not supported. In searching for the graphic symbol
|
|
set, *LIBL will be used for the qualified library name.</p>
|
|
<p>The name of
|
|
a graphic font can consist of up to 10 alphanumeric characters.</p>
|
|
<p>The
|
|
hardware font can consist of up to 10 digits and must be a registered font
|
|
number. See the <a href="../books/g5445846.pdf" target="_blank">IBM<sup>®</sup> infoprint
|
|
fonts: Font summary</a><img src="wbpdf.gif" alt="Link
to PDF" /> book for a listing of font IDs.</p>
|
|
<p>You can specify
|
|
*VECTOR on the FONT keyword to take advantage of vector fonts on the 4234 IPDS™ printer.
|
|
Vector fonts print expanded characters faster than they can be printed using
|
|
the PRTQLTY(*DRAFT) keyword. Use the CHRSIZ keyword to specify expanded characters.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> When
|
|
you specify FONT(*VECTOR) with the CHRSIZ keyword, the 4234 printer uses a
|
|
default code page.</div>
|
|
<div class="p">Vector fonts are valid only for the following
|
|
characters: <ul><li>A through Z</li>
|
|
<li>0 through 9</li>
|
|
<li>Special characters (. + $ * - / % and a blank)</li>
|
|
</ul>
|
|
</div>
|
|
<p>If the data to be printed contains any characters other than these,
|
|
all characters are printed using a default font on the printer.</p>
|
|
<p>FONT(*VECTOR)
|
|
has no effect on characters that have not been expanded. If FONT(*VECTOR)
|
|
is specified on a record or field for which CHRSIZ (1 1) applies or to which
|
|
no CHRSIZ keyword applies, a warning message is issued.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> If you use
|
|
FONT(*VECTOR) on a 4224 or 3812 printer, the printer uses a default font and
|
|
code page.</div>
|
|
<p>The font name or number and the point size values are
|
|
not checked during file creation. If the specified font-id and point size
|
|
values are not valid, a diagnostic is issued while the record prints and the
|
|
keyword are not used.</p>
|
|
<p>When FONT is specified at the field level, overlapping
|
|
fields are not diagnosed.</p>
|
|
<p>When
|
|
you use a graphics font on the CRTPRTF, CHGPRTF, or OVRPRTF command, the font
|
|
ID has an implied page code associated with it. To get the code you want,
|
|
you must use the proper font ID; the code page specified on the CHRID parameter
|
|
is not used.</p>
|
|
<p>If you specify OCR-A font with the CHRID
|
|
keyword, the fonts require code pages 892. If you specify OCR-B font with
|
|
the CHRID keyword, the fonts require code pages 893.</p>
|
|
<p>A warning message
|
|
is issued at create-time if a FONT DDS keyword is specified in a file created
|
|
with DEVTYPE(*IPDS) and FONT(*DEVD). For SCS printer files, the FONT keyword
|
|
is ignored when the record or field is printed. For IPDS printers, the FONT keyword can be changed
|
|
at the record or field level.</p>
|
|
<p>When printing a file that uses the FONT
|
|
keyword to an IPDS AFP(*YES)
|
|
printer that does not support registered fonts, a font substitution is performed.</p>
|
|
<p>When
|
|
you specify FONT(*CPI) with either the CRTPRTF, CHGPRTF, or OVRPRTF command
|
|
to a device that uses font support, the host system selects a font with the
|
|
pitch of the CPI for the current printer file.</p>
|
|
<p>FONT(graphic-font-name)
|
|
and CHRID cannot apply to the same field. The CHRID keyword is ignored if:</p>
|
|
<ul><li>You specify FONT(graphic-font-name) and CHRID on the same field.</li>
|
|
<li>You specify FONT(graphic-font-name) at the record level and a field in
|
|
the record specifies CHRID but not a numeric FONT.</li>
|
|
</ul>
|
|
<p>You cannot specify FONT at the same level as the CDEFNT and FNTCHRSET
|
|
keywords.</p>
|
|
<p>You can specify this keyword only once for each record and
|
|
once per field.</p>
|
|
<p>This keyword is valid for data types A, S, and F.</p>
|
|
<p>Option
|
|
indicators are valid for this keyword.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
|
|
the FONT keyword.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
00010A R RECORD1
|
|
00020A 02 03 FONT(222)
|
|
00030A FLD1 6A 16 01
|
|
00040A 01 FONT(ADMMVSS)
|
|
00050A FLD2 6S 20 01
|
|
00060A R RECORD2
|
|
00070A 04 FONT(16951 (*POINTSIZE 10))
|
|
00080A FLD3 6A 16 01
|
|
00090A 05 FONT(16951 (*POINTSIZE 12))
|
|
00100A FLD4 6S 20 01FONT(4919)
|
|
00110A
|
|
00120A FLD5 10A 30 01FONT(416 +
|
|
00130A 05 (*POINTSIZE 5.0 3.0))</pre>
|
|
<p>FLD1
|
|
uses the multinational vector symbol set (FONT(ADMMVSS)) if indicator 01 is
|
|
on, or Gothic 15 (FONT(222)) if indicator 01 is off and indicators 02 and
|
|
03 are on. Otherwise, the font specified on the CRTPRTF command is used.</p>
|
|
<p>FLD2
|
|
uses Gothic 15 if indicators 02 and 03 are on. Otherwise, the font specified
|
|
on the CRTPRTF command is used.</p>
|
|
<p>FLD3 uses Century Schoolbook** with
|
|
a point size of 12 (FONT(16951 (*POINTSIZE 12))) if indicator 05 is on, or
|
|
Century Schoolbook with a point size of 10 if indicator 05 is off and indicator
|
|
04 is on. Otherwise, the font specified on the CRTPRTF command is used.</p>
|
|
<p>FLD4
|
|
uses Goudy old style (FONT(4919)).</p>
|
|
<p>FLD5 specifies font 416 with a vertical
|
|
point size of 5.0 and a horizontal point size of 3.0.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="rzakdmstptcpi.htm" title="This record- or field-level keyword specifies the horizontal printing density for the record format or field that you are defining.">CPI (Characters Per Inch) keyword in printer files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |