This method translates a string containing an array of glyph indexes to a unicode string.
BSTR GlyphsToUnicodeStr ( BSTR glyphs ) |
Unicode string containing the current font's symbols into which glyph indexes were passed by the glyphs parameter.
{ PDF object is supposed to be created } PDF.BeginDoc; PDF.PDFPAGE_SetActiveFont('Arial', False, False, False, False, 16.0, 0); uString := PDF.GlyphsToUnicodeStr('$%&''()*+,-'); { now uString = "ABCDEFGHIJ" } PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_SetActiveFont("Arial", FALSE, FALSE, FALSE, FALSE, 16.0, 0); CString uString = PDF->GlyphsToUnicodeStr("$%&'()*+,-"); // now uString = "ABCDEFGHIJ"; PDF.EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_SetActiveFont("Arial", false, false, false, false, 16.0, 0); string uString = PDF.GlyphsToUnicodeStr("$%&'()*+,-"); // now uString = "ABCDEFGHIJ" PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Arial", False, False, False, False, 16.0, 0 uString = PDF.GlyphsToUnicodeStr("$%&'()*+,-") ' now uString = "ABCDEFGHIJ" PDF.EndDoc