Class
PangoFcDecoder
since: 1.6
Description [src]
abstract class PangoFc.Decoder : GObject.Object
{
/* No available fields */
}
PangoFcDecoder
is a virtual base class that implementations will
inherit from.
It’s the interface that is used to define a custom encoding for a font.
These objects are created in your code from a function callback that was
originally registered with pango_fc_font_map_add_decoder_find_func()
.
Pango requires information about the supported charset for a font as well
as the individual character to glyph conversions. Pango gets that
information via the #get_charset and #get_glyph callbacks into your
object implementation.
Available since: 1.6
Instance methods
pango_fc_decoder_get_charset
Generates an FcCharSet
of supported characters for the fcfont
given.
since: 1.6
pango_fc_decoder_get_glyph
Generates a PangoGlyph
for the given Unicode point using the
custom decoder.
since: 1.6
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct PangoFcDecoderClass {
FcCharSet* (* get_charset) (
PangoFcDecoder* decoder,
PangoFcFont* fcfont
);
PangoGlyph (* get_glyph) (
PangoFcDecoder* decoder,
PangoFcFont* fcfont,
guint32 wc
);
void (* _pango_reserved1) (
void
);
void (* _pango_reserved2) (
void
);
void (* _pango_reserved3) (
void
);
void (* _pango_reserved4) (
void
);
}
Class structure for PangoFcDecoder
.
Class members
get_charset: FcCharSet* (* get_charset) ( PangoFcDecoder* decoder, PangoFcFont* fcfont )
This returns an
FcCharset
given aPangoFcFont
that includes a list of supported characters in the font. TheFcCharSet
that is returned should be an internal reference to your code. Pango will not free this structure. It is important that you make this callback fast because this callback is called separately for each character to determine Unicode coverage.get_glyph: PangoGlyph (* get_glyph) ( PangoFcDecoder* decoder, PangoFcFont* fcfont, guint32 wc )
This returns a single
PangoGlyph
for a given Unicode code point._pango_reserved1: void (* _pango_reserved1) ( void )
No description available.
_pango_reserved2: void (* _pango_reserved2) ( void )
No description available.
_pango_reserved3: void (* _pango_reserved3) ( void )
No description available.
_pango_reserved4: void (* _pango_reserved4) ( void )
No description available.
Virtual methods
PangoFc.DecoderClass.get_charset
Generates an FcCharSet
of supported characters for the fcfont
given.
since: 1.6
PangoFc.DecoderClass.get_glyph
Generates a PangoGlyph
for the given Unicode point using the
custom decoder.
since: 1.6