Struct TextGlyph
The mapping between utf8 and glyphs
is provided by an array
of clusters. Each cluster
covers a number of text
bytes and
glyphs
, and neighboring clusters cover neighboring areas of
utf8 and glyphs
. The clusters should collectively cover
utf8 and glyphs
in entirety.
The first cluster
always covers bytes from the beginning of
utf8. If cluster_flags do not have the
CAIRO_TEXT_CLUSTER_FLAG_BACKWARD set, the first cluster
also
covers the beginning of glyphs
, otherwise it covers the end
of the glyphs
array and following clusters move backward.
See cairo_text_cluster_t for constraints on valid clusters.
Fields
Name | Type | Description |
---|---|---|
cluster
|
cairo_text_cluster_t[] |
array of cluster mapping information
|
flags
|
cairo_text_cluster_flags_t |
cluster mapping flags
|
glyphs
|
cairo_glyph_t[] |
array of glyphs
|
text
|
string |
a string of text encoded in UTF-8
|
Authors
Johannes Pfau | cairoD |
Andrej Mitrovic | cairoD |
cairo team | cairo |
Copyright
License
cairoD wrapper/bindings | Boost License 1.0 |
cairo | LGPL 2.1 / MPL 1.1 |