Namespace

PangoFT2 – 1.0

Freetype support for Pango

Version1.49.0
AuthorsOwen Taylor, Behdad Esfahbod
LicenseGPL-2.1-or-later
Websitehttps://www.pango.org
Sourcehttps://gitlab.gnome.org/GNOME/pango/

Build

C headerspango/pangoft2.h
pkg-config filespangoft2

Dependencies

Pango A library for layout out and rendering of text
Browse documentation
Freetype A font loading and rendering library
Browse documentation

Additional documentation

Classes

FontMap

The PangoFT2FontMap is the PangoFontMap implementation for FreeType fonts.

Callbacks

SubstituteFunc

Function type for doing final config tweaking on prepared FcPatterns.

Functions

font_get_coverage

Gets the PangoCoverage for a PangoFT2Font.

font_get_face

Returns the native FreeType2 FT_Face structure used for this PangoFont.

font_get_kerning

Retrieves kerning information for a combination of two glyphs.

get_context

Retrieves a PangoContext for the default PangoFT2 fontmap (see pango_ft2_font_map_for_display()) and sets the resolution for the default fontmap to dpi_x by dpi_y.

get_unknown_glyph

Return the index of a glyph suitable for drawing unknown characters with font, or PANGO_GLYPH_EMPTY if no suitable glyph found.

render

Renders a PangoGlyphString onto a FreeType2 bitmap.

render_layout

Render a PangoLayout onto a FreeType2 bitmap.

render_layout_line

Render a PangoLayoutLine onto a FreeType2 bitmap.

render_layout_line_subpixel

Render a PangoLayoutLine onto a FreeType2 bitmap, with he location specified in fixed-point Pango units rather than pixels.

render_layout_subpixel

Render a PangoLayout onto a FreeType2 bitmap, with he location specified in fixed-point Pango units rather than pixels.

render_transformed

Renders a PangoGlyphString onto a FreeType2 bitmap, possibly transforming the layed-out coordinates through a transformation matrix.

shutdown_display

Free the global fontmap. (See pango_ft2_font_map_for_display()) Use of the global PangoFT2 fontmap is deprecated.