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

68 lines
4.1 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 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>AFP fonts</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="rzau6fonts"></a>
<h3 id="rzau6fonts">AFP fonts</h3>
<p>A font is a collection of characters of a certain size, typeface, and type
style. Each character in a font is identified by a 1-byte (single-byte) or
a 2-byte (double-byte) code. The internal structure of fonts depends on whether
the font is for a phonetic or a non-phonetic writing system. An example of
a phonetic writing system is English. An example of a non-phonetic writing
system is Kanji. Advanced Function Presentation&trade; (AFP&trade;) fonts (or Font
Object Content Architecture (FOCA) fonts) are the standard fonts used for Intelligent Printer Data Stream&trade; (IPDS&trade;) output. AFP fonts are made up of a code page and a
character set, which are described in greater detail later. All AFP fonts are encoded
as either single-byte or double-byte fonts, depending on the language for
which they are being used.</p>
<p>At least two resources are needed to make up a font: a font character
set and a code page. The relationship between code pages and font character
sets is illustrated in <a href="rzau6fonts.htm#rzau6translate">Figure 1</a>. A third resource, a
coded font, can define a font by naming a font character set and a code page.</p>
<dl>
<dt class="bold">Font character set</dt>
<dd>This resource contains the patterns for each character in the font and
associates an 8-byte character identifier with each pattern. This resource
also contains descriptive information for the entire character set.
</dd>
<dt class="bold">Code page</dt>
<dd>This resource associates code points with character identifiers within
a font character set, each representing a character pattern. A code point
is an 8-bit binary number representing one of 256 potential characters.
</dd>
<dt class="bold">Coded font</dt>
<dd>This resource associates one or more code pages with the appropriate
font character sets.
</dd>
</dl>
<a name="rzau6translate"></a>
<div class="fignone" id="rzau6translate"><span class="figcap">Figure 1. Translation of a keyboard character into a printed character</span>
<div class="mmobj">
<img src="c5pu0085.gif" alt="This figure shows what is described in the text. It shows the letter A being pressed on a keyboard. &quot;A&quot; is Code point C1 on our code page and Character ID LA020000. Character ID LA020000 in our character set is an &quot;A&quot; in the selected style. An &quot;A&quot; prints on the page. The code page and character set together make a coded font." /></div></div>
<p><span class="bold">Related tasks</span></p>
<p><a href="rzau6getrsc.htm#rzau6getrsc">Obtain AFP resources</a></p>
<p><a href="rzau6specfnt.htm#rzau6specfnt">Specify an AFP font</a></p>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>