Namespace

PangoCairo – 1.0

Cairo support for Pango

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

Build

C headerspango/pangocairo.h
pkg-config filespangocairo

Dependencies

Pango A library for layout out and rendering of text
Browse documentation
Cairo A vector graphics library
Browse documentation

Additional documentation

Interfaces

Font

PangoCairoFont is an interface exported by fonts for use with Cairo.

FontMap

PangoCairoFontMap is an interface exported by font maps for use with Cairo.

Callbacks

ShapeRendererFunc

Function type for rendering attributes of type PANGO_ATTR_SHAPE with Pango’s Cairo renderer.

Functions

context_get_font_options

Retrieves any font rendering options previously set with pango_cairo_context_set_font_options().

context_get_resolution

Gets the resolution for the context. See pango_cairo_context_set_resolution()

context_get_shape_renderer

Sets callback function for context to use for rendering attributes of type PANGO_ATTR_SHAPE.

context_set_font_options

Sets the font options used when rendering text with this context.

context_set_resolution

Sets the resolution for the context.

context_set_shape_renderer

Sets callback function for context to use for rendering attributes of type PANGO_ATTR_SHAPE.

create_context

Creates a context object set up to match the current transformation and target surface of the Cairo context.

create_layout

Creates a layout object set up to match the current transformation and target surface of the Cairo context.

error_underline_path

Add a squiggly line to the current path in the specified cairo context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.

glyph_string_path

Adds the glyphs in glyphs to the current path in the specified cairo context.

layout_line_path

Adds the text in PangoLayoutLine to the current path in the specified cairo context.

layout_path

Adds the text in a PangoLayout to the current path in the specified cairo context.

show_error_underline

Draw a squiggly line in the specified cairo context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.

show_glyph_item

Draws the glyphs in glyph_item in the specified cairo context,

show_glyph_string

Draws the glyphs in glyphs in the specified cairo context.

show_layout

Draws a PangoLayout in the specified cairo context.

show_layout_line

Draws a PangoLayoutLine in the specified cairo context.

update_context

Updates a PangoContext previously created for use with Cairo to match the current transformation and target surface of a Cairo context.

update_layout

Updates the private PangoContext of a PangoLayout created with pango_cairo_create_layout() to match the current transformation and target surface of a Cairo context.