### Namespace

# PangoXft – 1.0

Xft support for Pango

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

#### Build

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

#### Dependencies

Pango—1.0 | A library for layout out and rendering of text
| Browse documentation
xft—2.0 | X11 client-side font rendering library
| Browse documentation

#### Additional documentation

- Xft Fonts and Rendering
- Classes Hierarchy

#### Classes

Font | `PangoXftFont` is an implementation of `PangoFcFont` using the Xft library for rendering. It is used in conjunction with `PangoXftFontMap`.
FontMap | `PangoXftFontMap` is an implementation of `PangoFcFontMap` suitable for the Xft library as the renderer. It is used in to create fonts of type `PangoXftFont`.
Renderer | `PangoXftRenderer` is a subclass of `PangoRenderer` used for rendering with Pango’s Xft backend. It can be used directly, or it can be further subclassed to modify exactly how drawing of individual elements occurs. since: 1.8

#### Callbacks

SubstituteFunc | Function type for doing final config tweaking on prepared FcPatterns.

#### Functions

get_context | Retrieves a `PangoContext` appropriate for rendering with Xft fonts on the given screen of the given display. deprecated: 1.22
get_font_map | Returns the `PangoXftFontMap` for the given display and screen. The fontmap is owned by Pango and will be valid until the display is closed. since: 1.2
picture_render | Renders a `PangoGlyphString` onto an Xrender Picture object.
render | Renders a `PangoGlyphString` onto an XftDraw object wrapping an X drawable.
render_layout | Render a `PangoLayout` onto a XftDraw. since: 1.8
render_layout_line | Render a `PangoLayoutLine` onto a XftDraw. since: 1.8
render_transformed | Renders a `PangoGlyphString` onto a XftDraw, possibly transforming the layed-out coordinates through a transformation matrix. since: 1.8
set_default_substitute | Sets a function that will be called to do final configuration substitution on a `FcPattern` before it is used to load the font. This function can be used to do things like set hinting and antialiasing options. deprecated: 1.46 since: 1.2
shutdown_display | Release any resources that have been cached for the combination of `display` and `screen`. Note that when the X display is closed, resources are released automatically, without needing to call this function. since: 1.2
substitute_changed | Call this function any time the results of the default substitution function set with `pango_xft_set_default_substitute()` change. That is, if your substitution function will return different results for the same input pattern, you must call this function. deprecated: 1.46 since: 1.2