ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzau6_5.4.0.1/rzau6fntxmp.htm

65 lines
3.7 KiB
HTML
Raw Permalink 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 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>Example: Specify a font</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="rzau6fntxmp"></a>
<h5 id="rzau6fntxmp">Example: Specify a font</h5>
<p>This example uses Data description specifications (DDS) keywords and RPG
to specify TrueType and Advanced Function Presentation&trade; (AFP&trade;) fonts. The document
is followed by the DDS keywords used.</p>
<a name="fntdoc"></a>
<div class="fignone" id="fntdoc"><span class="figcap">Figure 2. Document with several fonts</span>
<div class="mmobj">
<img src="c5pu4091.gif" alt="This document shows several different fonts being used. The fonts are different sizes, styles, rotations, and colors. They also illustrate the use of different code pages to make different characters appear." /></div></div>
<p>The fonts in the example have been specified using these DDS
keywords. The line numbers below correspond to the numbering in the sample
document. </p>
<a name="ddskeyfig"></a>
<div class="fignone" id="ddskeyfig"><span class="figcap">Figure 3. DDS keywords used to create the sample document</span>
<pre class="xmp">Line 1: FONT(2305 (*POINTSIZE 18)) COLOR(RED)
Line 2: FONTNAME('Courier New' (*POINTSIZE 20)(*CODEPAGE T1V10037)) COLOR(GRN)
Line 3: FNTCHRSET(C0S0BRTR T1V10037) COLOR(BLU)
Line 4: FONT(2311 (*POINTSIZE 18)) COLOR(PNK)
Line 5: FNTCHRSET(C0N500H0 T1V10500) COLOR(*RGB 50 50 75)
Line 6: FNTCHRSET(CZN500 T1V10284 (*POINTSIZE 18)) COLOR(*RGB 75 20 40)
Line 7: CDEFNT(X0N51EHC) COLOR(*CMYK 0 50 50 0)
Line 8: FONT(2304 (*POINTSIZE 24 10)) COLOR(*CMYK 50 0 0 50)
Line 9: FNTCHRSET(CZH200 T1V10274 (*POINTSIZE 48 10)) COLOR(TRQ)
Line 10: FONT(19) COLOR(BRN)
Line 11: FONT(420 (*POINTSIZE 18 50)) COLOR(RED) TXTRTT(270)
Line 12: FONT(420 (*POINTSIZE 18 50)) COLOR(RED) TXTRTT(90)</pre></div>
<a name="wq16"></a>
<div class="notelisttitle" id="wq16">Notes:</div>
<ol type="1">
<li>The TXTRTT keyword only works with fields, not constants.</li>
<li>The print data for lines 1 through 10 is constant text and was specified
in the DDS source.</li>
<li>The print data for lines 11 and 12 is a data field that contains the printed
text.</li>
</ol><span class="bold">Related concepts</span>
<p><a href="../dds/rbafpfinder.htm" target="_blank">DDS keyword finder</a></p>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>