Populate a text object with explicit glyph charcodes
Source:R/api_completion.R
pdf_text_set_charcodes.RdWraps FPDFText_SetCharcodes. The standard
pdf_text_set_content() maps UTF-8 text through the font's CMap
to find glyph codes; this lower-level setter takes the codes
directly. Useful when the font's encoding is non-standard or when
the embedder already has the glyph indices in hand (e.g. from a
previous pdf_text_runs() extraction).
See also
pdf_text_set_content() for the cmap-driven path.