Namespace

PangoCairo – 1.0

Cairo 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/pangocairo.h
pkg-config filespangocairo

Dependencies

cairo—1.0 A vector graphics library
Browse documentation
Pango—1.0 A library for layout out and rendering of text
Browse documentation

Additional documentation

Interfaces

Font

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

since: 1.18

FontMap

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

since: 1.10

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().

since: 1.10

context_get_resolution

Gets the resolution for the context.

since: 1.10

context_get_shape_renderer

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

since: 1.18

context_set_font_options

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

since: 1.10

context_set_resolution

Sets the resolution for the context.

since: 1.10

context_set_shape_renderer

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

since: 1.18

create_context

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

since: 1.22

create_layout

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

since: 1.10

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.

since: 1.14

glyph_string_path

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

since: 1.10

layout_line_path

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

since: 1.10

layout_path

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

since: 1.10

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.

since: 1.14

show_glyph_item

Draws the glyphs in glyph_item in the specified cairo context,

since: 1.22

show_glyph_string

Draws the glyphs in glyphs in the specified cairo context.

since: 1.10

show_layout

Draws a PangoLayout in the specified cairo context.

since: 1.10

show_layout_line

Draws a PangoLayoutLine in the specified cairo context.

since: 1.10

update_context

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

since: 1.10

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.

since: 1.10