function BuildToUnicodeCMap(const Glyphs: array of Word; const Text: WString): AnsiString;
Builds an ISO 32000-1 ToUnicode CMap that maps each CID in Glyphs to the corresponding Unicode character in Text
The generated map follows the CID = GID convention and suits CID Type 2 font workflows that need copied, searched, or spoken text to remain extractable
The glyph and text arrays must describe the same logical sequence, including surrogate pairs required by supplementary Unicode characters