Pango Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#define PANGO_RENDER_TYPE_FT2 PangoContext* pango_ft2_get_context (double dpi_x, double dpi_y); void pango_ft2_render (FT_Bitmap *bitmap, PangoFont *font, PangoGlyphString *glyphs, gint x, gint y); void pango_ft2_render_layout_line (FT_Bitmap *bitmap, PangoLayoutLine *line, int x, int y); void pango_ft2_render_layout (FT_Bitmap *bitmap, PangoLayout *layout, int x, int y); PangoGlyph pango_ft2_get_unknown_glyph (PangoFont *font); int pango_ft2_font_get_kerning (PangoFont *font, PangoGlyph left, PangoGlyph right); FT_Face pango_ft2_font_get_face (PangoFont *font); PangoCoverage* pango_ft2_font_get_coverage (PangoFont *font, PangoLanguage *language); PangoFontMap* pango_ft2_font_map_for_display (void); void pango_ft2_shutdown_display (void); |
#define PANGO_RENDER_TYPE_FT2 "PangoRenderFT2" |
A string constant identifying the FreeType renderer. The associated quark (see g_quark_from_string()) is used to identify the renderer in pango_find_map().
PangoContext* pango_ft2_get_context (double dpi_x, double dpi_y); |
Retrieves a PangoContext appropriate for rendering with the PangoFT2 backend.
void pango_ft2_render (FT_Bitmap *bitmap, PangoFont *font, PangoGlyphString *glyphs, gint x, gint y); |
Renders a PangoGlyphString onto a FreeType2 bitmap.
void pango_ft2_render_layout_line (FT_Bitmap *bitmap, PangoLayoutLine *line, int x, int y); |
Render a PangoLayoutLine onto a FreeType2 bitmap
bitmap : | a FT_Bitmap to render the line onto |
line : | a PangoLayoutLine |
x : | the x position of start of string (in pixels) |
y : | the y position of baseline (in pixels) |
void pango_ft2_render_layout (FT_Bitmap *bitmap, PangoLayout *layout, int x, int y); |
Render a PangoLayout onto a FreeType2 bitmap
PangoGlyph pango_ft2_get_unknown_glyph (PangoFont *font); |
Return the index of a glyph suitable for drawing unknown characters.
int pango_ft2_font_get_kerning (PangoFont *font, PangoGlyph left, PangoGlyph right); |
Retrieves kerning information for a combination of two glyphs.
font : | a PangoFont |
left : | the left PangoGlyph |
right : | the right PangoGlyph |
Returns : | The amount of kerning (in Pango units) to apply for the given combination of glyphs. |
FT_Face pango_ft2_font_get_face (PangoFont *font); |
Returns the native FreeType2 FT_Face structure used for this PangoFont. This may be useful if you want to use FreeType2 functions directly.
PangoCoverage* pango_ft2_font_get_coverage (PangoFont *font, PangoLanguage *language); |
Should not be called directly, use pango_font_get_coverage() instead.
font : | a PangoFT2Font. |
language : | a language tag. |
Returns : | a PangoCoverage. |
PangoFontMap* pango_ft2_font_map_for_display (void); |
Returns a PangoFT2FontMap. Font maps are cached and should not be freed. If the font map is no longer needed, it can be released with pango_ft2_shutdown_display().