Package: cairo

Function cairo-glyph-extents

Lambda List

cairo-glyph-extents (cr glyphs)

Arguments

cr -- a cairo-t context
glyphs -- a list of glyphs of the form '((index1 x1 y1) (index2 x2 y2) ...)

Return Value

A cairo-text-extents-t instance with the extents of glyphs.

Details

Gets the extents for a list of glyphs. The extents describe a user-space rectangle that encloses the "inked" portion of the glyphs, as they would be drawn by the cairo-show-glyphs function. Additionally, the x-advance and y-advance values indicate the amount by which the current point would be advanced by the cairo-show-glyphs function.

Note that whitespace glyphs do not contribute to the size of the rectangle (width and height).
 

See also

2021-12-12