PangoFcFont
PangoFcFont — Base font class for Fontconfig-based backends
|
|
Description
PangoFcFont is a base class for font implementation using the
Fontconfig and FreeType libraries. It is used in the
Xft and
FreeTypebackends 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.
Functions
pango_fc_font_lock_face ()
FT_Face
pango_fc_font_lock_face (PangoFcFont *font);
pango_fc_font_lock_face has been deprecated since version 1.44 and should not be used in newly-written code.
Use pango_font_get_hb_font() instead
Gets the FreeType FT_Face associated with a font,
This face will be kept around until you call
pango_fc_font_unlock_face().
Returns
the FreeType FT_Face associated with font
.
Since: 1.4
pango_fc_font_has_char ()
gboolean
pango_fc_font_has_char (PangoFcFont *font,
gunichar wc);
pango_fc_font_has_char has been deprecated since version 1.44 and should not be used in newly-written code.
Use pango_font_has_char()
Determines whether font
has a glyph for the codepoint wc
.
Returns
TRUE if font
has the requested codepoint.
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 font
. If you only want to determine
whether the font has the glyph, use pango_fc_font_has_char().
Returns
the glyph index, or 0, if the Unicode
character doesn't exist in the font.
Since: 1.4
pango_fc_font_get_unknown_glyph ()
PangoGlyph
pango_fc_font_get_unknown_glyph (PangoFcFont *font,
gunichar wc);
pango_fc_font_get_unknown_glyph is deprecated and should not be used in newly-written code.
Returns the index of a glyph suitable for drawing wc
as an
unknown character.
Use PANGO_GET_UNKNOWN_GLYPH() instead.
Returns
a glyph index into font
.
Since: 1.4
pango_fc_font_kern_glyphs ()
void
pango_fc_font_kern_glyphs (PangoFcFont *font,
PangoGlyphString *glyphs);
pango_fc_font_kern_glyphs has been deprecated since version 1.32 and should not be used in newly-written code.
This function used to adjust each adjacent pair of glyphs
in glyphs
according to kerning information in font
.
Since 1.44, it does nothing.
Since: 1.4
Types and Values
struct PangoFcFont
struct PangoFcFont;
PangoFcFont is deprecated and should not be used in newly-written code.
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 shutdown() along with the get_glyph_extents()
virtual function from PangoFont.
PangoFcFontClass
typedef 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.
Property Details
The “fontmap” property
“fontmap” PangoFcFontMap *
The PangoFc font map this font is associated with (Since: 1.26).
Owner: PangoFcFont
Flags: Read / Write
The “pattern” property
“pattern” gpointer
The fontconfig pattern for this font.
Owner: PangoFcFont
Flags: Read / Write / Construct Only