2000-11-10 18:10:14 +01:00
|
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"
|
|
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
2000-01-31 19:15:12 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
2000-11-10 18:10:14 +01:00
|
|
|
<meta http-equiv="Content-Type"
|
|
|
|
content="text/html; charset=iso-8859-1">
|
|
|
|
<meta name="Author"
|
|
|
|
content="David Turner">
|
|
|
|
<title>FreeType Glyph Conventions</title>
|
2000-01-31 19:15:12 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body text="#000000"
|
|
|
|
bgcolor="#FFFFFF"
|
|
|
|
link="#0000EF"
|
|
|
|
vlink="#51188E"
|
|
|
|
alink="#FF0000">
|
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<h1 align=center>
|
|
|
|
FreeType Glyph Conventions
|
|
|
|
</h1>
|
2000-01-31 19:15:12 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<h2 align=center>
|
|
|
|
Version 2.1
|
|
|
|
</h2>
|
2000-01-31 19:15:12 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<h3 align=center>
|
|
|
|
Copyright 1998-2000 David Turner (<a
|
|
|
|
href="mailto:david@freetype.org">david@freetype.org</a>)<br>
|
|
|
|
Copyright 2000 The FreeType Development Team (<a
|
|
|
|
href="mailto:devel@freetype.org">devel@freetype.org</a>)
|
|
|
|
</h3>
|
2000-01-31 19:15:12 +01:00
|
|
|
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<center>
|
|
|
|
<table width="70%">
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
<p>This document presents the core conventions used within the FreeType
|
|
|
|
library to manage font and glyph data. It is a <em>must-read</em> for all
|
|
|
|
developers who need to understand digital typography, especially if you
|
|
|
|
want to use the FreeType 2 library in your projects.</p>
|
|
|
|
|
|
|
|
<table width="100%">
|
|
|
|
<tr valign=center
|
|
|
|
bgcolor="#CCCCFF">
|
|
|
|
<td align=center>
|
|
|
|
<h2>
|
|
|
|
Table of Contents
|
|
|
|
</h2>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<center>
|
|
|
|
<table width="80%">
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<a href="glyphs-1.html">I. Basic Typographic Concepts</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
2000-11-09 01:01:38 +01:00
|
|
|
<h3>
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-1.html#section-1">1. Font files, format and
|
|
|
|
information</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-1.html#section-2">2. Character images and mappings</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-1.html#section-3">3. Character and font metrics</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<a href="glyphs-2.html">II. Glyph outlines</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
|
|
|
<h3>
|
|
|
|
<a href="glyphs-2.html#section-1">1. Pixels, points and device
|
|
|
|
resolutions</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-2.html#section-2">2. Vectorial representation</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-2.html#section-3">3. Hinting and bitmap rendering</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<a href="glyphs-3.html">III. Glyph metrics</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
2000-11-09 01:01:38 +01:00
|
|
|
<h3>
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-3.html#section-1">1. Baseline, pens and layouts</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-3.html#section-2">2. Typographic metrics and
|
|
|
|
bounding boxes</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-3.html#section-3">3. Bearings and advances</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-3.html#section-4">4. The effects of grid-fitting</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-3.html#section-5">5. Text widths and bounding box</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<h2>
|
|
|
|
<a href="glyphs-4.html">IV. Kerning</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
2000-11-09 01:01:38 +01:00
|
|
|
<h3>
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-4.html#section-1">1. Kerning pairs</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-4.html#section-2">2. Applying kerning</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<a href="glyphs-5.html">V. Text processing</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
2000-11-09 01:01:38 +01:00
|
|
|
<h3>
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-5.html#section-1">1. Writing simple text strings</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-5.html#section-2">2. Sub-pixel positioning</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-5.html#section-3">3. Simple kerning</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-5.html#section-4">4. Right-to-left layouts</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-5.html#section-5">5. Vertical layouts</a>
|
|
|
|
<br>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<a href="glyphs-5.html#section-6">6. WYSIWYG text layouts</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
2000-11-09 01:01:38 +01:00
|
|
|
|
2000-11-10 18:10:14 +01:00
|
|
|
<h2>
|
|
|
|
<a href="glyphs-6.html">VI. FreeType Outlines</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
|
|
|
<h3>
|
|
|
|
<a href="glyphs-6.html#section-1">1. FreeType outline description
|
|
|
|
and structure</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-6.html#section-2">2. Bounding and control box
|
|
|
|
computations</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-6.html#section-3">3. Coordinates, scaling, and
|
|
|
|
grid-fitting</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<a href="glyphs-7.html">VII. FreeType bitmaps</a>
|
|
|
|
</h2>
|
|
|
|
<blockquote>
|
|
|
|
<h3>
|
|
|
|
<a href="glyphs-7.html#section-1">1. Vectorial versus pixel
|
|
|
|
coordinates</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-7.html#section-2">2. FreeType bitmap and pixmap
|
|
|
|
descriptor</a>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="glyphs-7.html#section-3">3. Converting outlines into
|
|
|
|
bitmaps and pixmaps</a>
|
|
|
|
<br>
|
|
|
|
</h3>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
2000-01-31 19:15:12 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|