Package: cairo
Function cairo-show-text-glyphs
Lambda Listcairo-show-text-glyphs (cr utf8 len glyphs num-glyphs clusters num-clusters flags) ArgumentsDetails This operation has rendering effects similar to the cairo-show-glyphs
function but, if the target surface supports it, uses the provided text and
cluster mapping to embed the text for the glyphs shown in the output.
If the target does not support the extended attributes, this function acts like the basic the cairo-show-glyphs function as if it had been passed glyphs and num-glyphs. The mapping between UTF-8 and glyphs is provided by an array of clusters. Each cluster covers a number of text bytes and glyphs, and neighboring clusters cover neighboring areas of UTF-8 and glyphs. The clusters should collectively cover UTF-8 and glyphs in entirety. The first cluster always covers bytes from the beginning of UTF-8. If flags do not have the :backward set, the first cluster also covers the beginning of glyphs, otherwise it covers the end of the glyphs array and following clusters move backward. See the cairo-text-cluster-t structure for constraints on valid clusters. | See also |
2021-12-12