Debian Codegraph @

doc/section-cairo-text.xml.texi

raw
1
2 @c %start of fragment
3
4 @node Text
5 @chapter Text
6 Rendering text and glyphs
7
8 @section Overview
9 The functions with @emph{text} in their name form cairo's @dfn{toy} text
10 API. The toy API takes UTF-8 encoded text and is limited in its
11 functionality to rendering simple left-to-right text with no advanced
12 features. That means for example that most complex scripts like Hebrew,
13 Arabic, and Indic scripts are out of question. No kerning or correct
14 positioning of diacritical marks either. The font selection is pretty
15 limited too and doesn't handle the case that the selected font does not
16 cover the characters in the text. This set of functions are really that,
17 a toy text API, for testing and demonstration purposes. Any serious
18 application should avoid them.
19
20 The functions with @emph{glyphs} in their name form cairo's
21 @dfn{low-level} text API. The low-level API relies on the user to
22 convert text to a set of glyph indexes and positions. This is a very
23 hard problem and is best handled by external libraries, like the
24 pangocairo that is part of the Pango text layout and rendering library.
25 Pango is available from
26 @uref{http://www.pango.org/,http://www.pango.org/}.
27
28 @section Usage
29 @include defuns-cairo-text.xml.texi
30
31 @c %end of fragment