| 1 |
--- |
| 2 |
layout: default |
| 3 |
title: About Graphite |
| 4 |
nav_order: 200 |
| 5 |
has_children: true |
| 6 |
has_toc: false |
| 7 |
--- |
| 8 |
|
| 9 |
# About Graphite |
| 10 |
|
| 11 |
## What is Graphite? |
| 12 |
|
| 13 |
Graphite is a package that can be used to create “smart fonts” capable of displaying writing systems with various complex behaviors. A smart font contains not only letter shapes but also additional instructions indicating how to combine and position the letters in complex ways. |
| 14 |
|
| 15 |
Graphite was developed to provide the flexibility needed for lesser-known languages which often need to be written according to slightly different rules than well-known languages that use the same script. |
| 16 |
|
| 17 |
Examples of complex script behaviors Graphite can handle include: |
| 18 |
|
| 19 |
* contextual shaping |
| 20 |
* ligatures |
| 21 |
* reordering |
| 22 |
* split glyphs |
| 23 |
* bidirectionality |
| 24 |
* stacking diacritics |
| 25 |
* complex positioning |
| 26 |
|
| 27 |
[↗ Examples of complex rendering](https://scriptsource.org/cms/scripts/page.php?item_id=entry_detail&uid=lu6terdg9u){:target="_blank"} |
| 28 |
|
| 29 |
## Graphite system overview |
| 30 |
|
| 31 |
The Graphite system consists of: |
| 32 |
|
| 33 |
* a rule-based programming language called Graphite Description Language (GDL) that can be used to describe the behavior of a writing system |
| 34 |
* a compiler for that language |
| 35 |
* a rendering engine that can serve as the layout component of a text-processing application |
| 36 |
|
| 37 |
Graphite renders TrueType fonts that have been extended by means of compiling a GDL program. |
| 38 |
|
| 39 |
Further technical information is available on the [Graphite technical overview page](graphite_techAbout). |
| 40 |
|
| 41 |
## Why was Graphite developed? |
| 42 |
|
| 43 |
SIL International is a non-profit organization that performs linguistic research, literacy development, and translation work among ethnic minorities around the world. Our members are currently working with approximately a thousand language groups on six continents, and increasingly, many of the areas in which we work use scripts that require complex rendering. |
| 44 |
|
| 45 |
[Read more...](graphite_aboutWhy) |
| 46 |
|
| 47 |
## Graphite and OpenType |
| 48 |
|
| 49 |
OpenType is the most prevalent smart font technology. Given the extra costs of supporting Graphite in addition to OpenType, what are the gains? |
| 50 |
|
| 51 |
Graphite and OpenType are not competing technologies. Applications may support both Graphite and OpenType rendering and fonts may be developed that work with both Graphite and OpenType. |
| 52 |
|
| 53 |
[Read more...](graphite_aboutOT) |
| 54 |
|
| 55 |
## Why should I add Graphite to my font? |
| 56 |
|
| 57 |
The following are some benefits of including Graphite support in a font: |
| 58 |
|
| 59 |
* Graphite provides a way to support a complex script that is not yet handled by standard software (ie, OpenType drivers such as Uniscribe, ICU rendering, etc.). |
| 60 |
* Graphite permits customized rules for lesser-known languages, and/or serves as a mechanism to easily add them in the future. |
| 61 |
* Graphite supports complex behavior that cannot be handled by OpenType, such as positioning based on the positions and/or sizes of neighboring glyphs, etc. |
| 62 |
* Using Graphite, it is possible to quickly implement a complex set of rules that are feasible but more difficult to handle in OpenType. |
| 63 |
* Graphite permits user-definable features beyond the defined set of OpenType features. |
| 64 |
* Graphite provides consistent smart behavior across all applications. |
| 65 |
|
| 66 |
## What is Graide? |
| 67 |
|
| 68 |
Graide is a development and debugging tool for use in creating Graphite fonts. It stands for **GRA**phite **I**ntegrated **D**evelopment **E**nvironment. |
| 69 |
|
| 70 |
[Read more...](graide) |