SynopsisPangoFcFont; PangoFcFontClass; #define PANGO_RENDER_TYPE_FC FT_Face pango_fc_font_lock_face (PangoFcFont *font); void pango_fc_font_unlock_face (PangoFcFont *font); gboolean pango_fc_font_has_char (PangoFcFont *font, gunichar wc); guint pango_fc_font_get_glyph (PangoFcFont *font, gunichar wc); PangoGlyph pango_fc_font_get_unknown_glyph (PangoFcFont *font, gunichar wc); void pango_fc_font_kern_glyphs (PangoFcFont *font, PangoGlyphString *glyphs); DescriptionPangoFcFont is a base class for font implementation using the Fontconfig and FreeType libraries. It is used in the Xft and FreeType backends shipped with Pango, but can also be used when creating new backends. Any backend deriving from this base class will take advantage of the wide range of shapers implemented using FreeType that come with Pango. DetailsPangoFcFonttypedef struct _PangoFcFont PangoFcFont;
PangoFcFont is a base class for font implementations
using the Fontconfig and FreeType libraries and is used in
conjunction with PangoFcFontMap. When deriving from this
class, you need to implement all of its virtual functions
other than
PangoFcFontClasstypedef struct { FT_Face (*lock_face) (PangoFcFont *font); void (*unlock_face) (PangoFcFont *font); gboolean (*has_char) (PangoFcFont *font, gunichar wc); guint (*get_glyph) (PangoFcFont *font, gunichar wc); PangoGlyph (*get_unknown_glyph) (PangoFcFont *font, gunichar wc); void (*shutdown) (PangoFcFont *font); } PangoFcFontClass; Class structure for PangoFcFont.
PANGO_RENDER_TYPE_FC#define PANGO_RENDER_TYPE_FC "PangoRenderFc"
A string constant used to identify shape engines that work
with the fontconfig based backends. See the
pango_fc_font_lock_face ()FT_Face pango_fc_font_lock_face (PangoFcFont *font);
Gets the FreeType FT_Face associated with a font,
This face will be kept around until you call
Since 1.4 pango_fc_font_unlock_face ()void pango_fc_font_unlock_face (PangoFcFont *font);
Releases a font previously obtained with
Since 1.4 pango_fc_font_has_char ()gboolean pango_fc_font_has_char (PangoFcFont *font, gunichar wc);
Determines whether
Since 1.4 pango_fc_font_get_glyph ()guint pango_fc_font_get_glyph (PangoFcFont *font, gunichar wc);
Gets the glyph index for a given Unicode character
for
Since 1.4 pango_fc_font_get_unknown_glyph ()PangoGlyph pango_fc_font_get_unknown_glyph (PangoFcFont *font, gunichar wc); Warning
Returns the index of a glyph suitable for drawing
Use
Since 1.4 pango_fc_font_kern_glyphs ()void pango_fc_font_kern_glyphs (PangoFcFont *font, PangoGlyphString *glyphs);
Adjust each adjacent pair of glyphs in
Since 1.4 See Also
|