Namespace

PangoXft – 1.0

Xft support for Pango

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

Build

C headerspango/pangoxft.h
pkg-config filespangoxft

Dependencies

Pango A library for layout out and rendering of text
Browse documentation
Xft X11 client-side font rendering library
Browse documentation

Additional documentation

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.

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.

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.

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.

render_layout_line

Render a PangoLayoutLine onto a XftDraw.

render_transformed

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

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.

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.

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.