Namespace

PangoFT2 – 1.0

FreeType support for Pango

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

Build

C headerspango/pangoft2.h
pkg-config filespangoft2

Dependencies

freetype2—2.0 A font loading and rendering library
Browse documentation
Pango—1.0 A library for layout out and rendering of text
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.

deprecated: 1.22 

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.

since: 1.6

render_layout_subpixel

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

since: 1.6

render_transformed

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

since: 1.6

shutdown_display

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