PangoFT2 – 1.0
Description: Reference for PangoFT2-1.0

### Namespace

# PangoFT2 – 1.0

Freetype support for Pango

Version | 1.48.9
Authors | Owen Taylor, Behdad Esfahbod
License | GPL-2.1-or-later
Website | https://www.pango.org
Source | https://gitlab.gnome.org/GNOME/pango/

#### Build

C headers | `pango/pangoft2.h`
pkg-config files | `pangoft2`

#### 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 Hierarchy

#### 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.