Top |
The shape engines are rendering-system dependent
engines that convert character strings into glyph strings.
These engines are used in pango_shape()
.
#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 GTypeprefix
_type; static voidprefix
_register_type (GTypeModule module);
The
function should be called in your prefix
_register_type()
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:
1 |
PangoEngine *engine = g_object_new (<em class="replaceable"><code>prefix</code></em>_type, NULL); |
name |
Name of the the type to register (for example:, |
|
prefix |
Prefix for symbols that will be defined (for example:, |
|
class_init |
Class initialization function for the new type, or |
[nullable] |
instance_init |
Instance initialization function for the new type, or |
[nullable] |
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 { 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
Given a font, a piece of text, and a PangoAnalysis
structure, converts characters to glyphs and positions the
resulting glyphs. The results are stored in the PangoGlyphString
that is passed in. (The implementation should resize it
appropriately using |
||
Returns the characters that this engine can cover with a given font for a given language. If not overridden, the default implementation simply returns the coverage information for the font itself unmodified. |
#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.