blob: bfa6a4175e880693f05c61c73b77f073bd05993a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Shaping concepts: HarfBuzz Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="HarfBuzz Manual">
<link rel="up" href="pt01.html" title="Part I. User's manual">
<link rel="prev" href="ch03s03.html" title="A simple shaping example">
<link rel="next" href="complex-scripts.html" title="Complex scripts">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="pt01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch03s03.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="complex-scripts.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="chapter">
<div class="titlepage"><div><div><h2 class="title">
<a name="shaping-concepts"></a>Shaping concepts</h2></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="shaping-concepts.html#text-shaping-concepts">Text shaping</a></span></dt>
<dt><span class="section"><a href="complex-scripts.html">Complex scripts</a></span></dt>
<dt><span class="section"><a href="shaping-operations.html">Shaping operations</a></span></dt>
<dt><span class="section"><a href="unicode-character-categories.html">Unicode character categories</a></span></dt>
<dt><span class="section"><a href="text-runs.html">Text runs</a></span></dt>
<dt><span class="section"><a href="opentype-shaping-models.html">OpenType shaping models</a></span></dt>
<dt><span class="section"><a href="graphite-shaping.html">Graphite shaping</a></span></dt>
<dt><span class="section"><a href="aat-shaping.html">AAT shaping</a></span></dt>
</dl></div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="text-shaping-concepts"></a>Text shaping</h2></div></div></div>
<p>
Text shaping is the process of transforming a sequence of Unicode
codepoints that represent individual characters (letters,
diacritics, tone marks, numbers, symbols, etc.) into the
orthographically and linguistically correct two-dimensional layout
of glyph shapes taken from a specified font.
</p>
<p>
For some writing systems (or <span class="emphasis"><em>scripts</em></span>) and
languages, the process is simple, requiring the shaper to do
little more than advance the horizontal position forward by the
correct amount for each successive glyph.
</p>
<p>
But, for <span class="emphasis"><em>complex scripts</em></span>, any combination of
several shaping operations may be required, and the rules for how
and when they are applied vary from script to script. HarfBuzz and
other shaping engines implement these rules.
</p>
<p>
The exact rules and necessary operations for a particular script
constitute a shaping <span class="emphasis"><em>model</em></span>. OpenType
specifies a set of shaping models that covers all of
Unicode. Other shaping models are available, however, including
Graphite and Apple Advanced Typography (AAT).
</p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>