Rendering
Functions to run the rendering pipeline.
The Pango rendering pipeline takes a string of
Unicode characters and converts it into glyphs.
The functions described in this section accomplish
various steps of this process.
@context:
@text:
@length:
@lang_info:
@n_langs:
@Returns:
The #PangoContext structure stores global information
used to control the itemization process. It contains
the following fields:
gchar *lang;
the global default language in the standard form
"fr" or "fr_FR". (This may be overriden
with the @lang_info parameter to pango_itemize().)
gchar *render_type;
a string identifier for the rendering system to use,
for instance %PANGO_RENDER_TYPE_X
@lang:
@render_type:
@direction:
The #PangoItem structure stores information about
a segment of text. It contains the following fields:
gint offset;
the offset of the segment from the beginning of the
string in bytes.
gint length;
the length of the segment in bytes.
gint num_chars;
the length of the segment in characters.
gint analysis;
the properties of the segment.
@offset:
@length:
@num_chars:
@analysis:
The #PangoAnalysis structure stores information about
the properties of a segment of text. It has the following
fields:
#PangoEngineShape *shape_engine;
the engine for doing rendering-system-dependent processing
#PangoEngineLang *lang_engine;
the engine for doing rendering-system-independent processing
guint8 level;
the bidrectional level for this segment.
@shape_engine:
@lang_engine:
@level:
The #PangoLangRange structure stores language tagging
information for a range of character positions of text.
It contains the following fields:
gint start;
the start position of this tagged range in bytes.
gint length;
the length of this tagged range in bytes.
gchar *lang;
the language for this range, in the standard form
"fr" or "fr_FR".
@start:
@length:
@lang:
@PANGO_DIRECTION_LTR:
@PANGO_DIRECTION_RTL:
@PANGO_DIRECTION_TTB:
@logical_items:
@Returns:
@text:
@length:
@analysis:
@attrs:
The #PangoLogAttr structure stores information
about the attributes of a single character.
@is_break:
@is_white:
@is_char_stop:
@is_word_stop:
@font:
@text:
@length:
@analysis:
@glyphs:
@glyphs:
@new_line_width:
@min_kashida_width:
@text:
@length:
@analysis:
@glyphs:
@char_pos:
@trailing:
@x_pos:
@text:
@length:
@analysis:
@glyphs:
@x_pos:
@char_pos:
@trailing: