Package: pango
Function pango-font-glyph-extents
Lambda Listpango-font-glyph-extents (font glyph ink-rect logical-rect) ArgumentsDetails
Gets the logical and ink extents of a glyph within a font.
The coordinate system for each rectangle has its origin at the base line and
horizontal origin of the character with increasing coordinates extending to the right and down. The macros PANGO_ASCENT(), PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert
from the extents rectangle to more traditional font metrics. The units of the rectangles are in 1/+pango-scale+ of a device unit. If font is nil, this function gracefully sets some sane values in the output variables and returns. | See also |
2021-1-8