PangoEngineShape
PangoEngineShape — Rendering-system dependent script engines
|
|
Stability Level
Unstable, unless otherwise indicated
Description
The shape engines are rendering-system dependent
engines that convert character strings into glyph strings.
These engines are used in pango_shape().
Functions
PANGO_ENGINE_SHAPE_DEFINE_TYPE()
#define PANGO_ENGINE_SHAPE_DEFINE_TYPE(name, prefix, class_init, instance_init)
PANGO_ENGINE_SHAPE_DEFINE_TYPE has been deprecated since version 1.38 and should not be used in newly-written code.
Outputs the necessary code for GObject type registration for a
PangoEngineShape class defined in a module. Two static symbols
are defined.
static GType prefix_type;
static void prefix_register_type (GTypeModule module);
The prefix_register_type()
function should be called in your script_engine_init() function for
each type that your module implements, and then your script_engine_create()
function can create instances of the object as follows:
Types and Values
PangoEngineShape
typedef struct _PangoEngineShape PangoEngineShape;
PangoEngineShape has been deprecated since version 1.38 and should not be used in newly-written code.
The PangoEngineShape class is implemented by engines that
customize the rendering-system dependent part of the
Pango pipeline for a particular script or language.
A PangoEngineShape implementation is then specific to both
a particular rendering system or group of rendering systems
and to a particular script. For instance, there is one
PangoEngineShape implementation to handle shaping Arabic
for Fontconfig-based backends.
struct PangoEngineShapeClass
struct PangoEngineShapeClass {
void (*script_shape) (PangoEngineShape *engine,
PangoFont *font,
const char *item_text,
unsigned int item_length,
const PangoAnalysis *analysis,
PangoGlyphString *glyphs,
const char *paragraph_text,
unsigned int paragraph_length);
PangoCoverageLevel (*covers) (PangoEngineShape *engine,
PangoFont *font,
PangoLanguage *language,
gunichar wc);
};
PangoEngineShapeClass has been deprecated since version 1.38 and should not be used in newly-written code.
Class structure for PangoEngineShape
PANGO_ENGINE_TYPE_SHAPE
#define PANGO_ENGINE_TYPE_SHAPE "PangoEngineShape"
PANGO_ENGINE_TYPE_SHAPE has been deprecated since version 1.38 and should not be used in newly-written code.
A string constant defining the engine type for shaping engines.
These engines derive from PangoEngineShape.