Package: pango
Function pango:glyph-string-x-to-index
Lambda Listpango:glyph-string-x-to-index (glyphs text len analysis xpos) SyntaxArgumentsDetails
Convert from x offset to character position.
Character positions are computed by dividing up each cluster into equal
portions. In scripts where positioning within a cluster is not allowed (such
as Thai), the returned value may not be a valid cursor position. The caller
must combine the result with the logical attributes for the text to compute
the valid cursor position. | See also |
2026-03-08