pangocairo.global

Global functions for pangocairo1 library

Functions 18

fncairo.font_options.FontOptions contextGetFontOptions(pango.context.Context context)Retrieves any font rendering options previously set with `funcPangoCairo.contextsetfont_options`.
fndouble contextGetResolution(pango.context.Context context)Gets the resolution for the context.
fnvoid contextSetFontOptions(pango.context.Context context, cairo.font_options.FontOptions options = null)Sets the font options used when rendering text with this context.
fnvoid contextSetResolution(pango.context.Context context, double dpi)Sets the resolution for the context.
fnvoid contextSetShapeRenderer(pango.context.Context context, pangocairo.types.ShapeRendererFunc func = null)Sets callback function for context to use for rendering attributes of type [pango.types.AttrType.Shape].
fnpango.context.Context createContext(cairo.context.Context cr)Creates a context object set up to match the current transformation and target surface of the Cairo context.
fnpango.layout.Layout createLayout(cairo.context.Context cr)Creates a layout object set up to match the current transformation and target surface of the Cairo context.
fnvoid errorUnderlinePath(cairo.context.Context cr, double x, double y, double width, double height)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.
fnvoid glyphStringPath(cairo.context.Context cr, pango.font.Font font, pango.glyph_string.GlyphString glyphs)Adds the glyphs in glyphs to the current path in the specified cairo context.
fnvoid layoutLinePath(cairo.context.Context cr, pango.layout_line.LayoutLine line)Adds the text in [pango.layout_line.LayoutLine] to the current path in the specified cairo context.
fnvoid layoutPath(cairo.context.Context cr, pango.layout.Layout layout)Adds the text in a [pango.layout.Layout] to the current path in the specified cairo context.
fnvoid showErrorUnderline(cairo.context.Context cr, double x, double y, double width, double height)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.
fnvoid showGlyphItem(cairo.context.Context cr, string text, pango.glyph_item.GlyphItem glyphItem)Draws the glyphs in glyph_item in the specified cairo context,
fnvoid showGlyphString(cairo.context.Context cr, pango.font.Font font, pango.glyph_string.GlyphString glyphs)Draws the glyphs in glyphs in the specified cairo context.
fnvoid showLayout(cairo.context.Context cr, pango.layout.Layout layout)Draws a [pango.layout.Layout] in the specified cairo context.
fnvoid showLayoutLine(cairo.context.Context cr, pango.layout_line.LayoutLine line)Draws a [pango.layout_line.LayoutLine] in the specified cairo context.
fnvoid updateContext(cairo.context.Context cr, pango.context.Context context)Updates a [pango.context.Context] previously created for use with Cairo to match the current transformation and target surface of a Cairo context.
fnvoid updateLayout(cairo.context.Context cr, pango.layout.Layout layout)Updates the private [pango.context.Context] of a [pango.layout.Layout] created with `funccreate_layout` to match the current transformation and target surface of a Cairo context.