Hi,

I am writing a virtual printer driver for WinXP. In DrvTextOut(), I
need to capture and record the Unicode text string to be printed.
Sometimes, this string is contained in STROBJ->pwszOrg. However, when
STROBJ->flAccel contains SO_GLYPHINDEX_TEXTOUT, "pwszOrg points to an
array of glyph indexes, rather than a Unicode array." As hard as I
tried, I could not figure out how to convert this array of glyph
indexes back into Unicode characters. Am I missing something here?
Please help!

Regards.

Capturing Unicode string in DrvTextOut by anonymous

anonymous
Tue Nov 18 12:47:03 CST 2003

In my experience, if the application passes you glyph
indeces, you're out of luck. There's no reliable way of
going from glyph indeces back to the characters
themselves. Adobe Acrobat Reader does this.

Regards,
Andrei

>-----Original Message-----
>Hi,
>
>I am writing a virtual printer driver for WinXP. In
DrvTextOut(), I
>need to capture and record the Unicode text string to be
printed.
>Sometimes, this string is contained in STROBJ->pwszOrg.
However, when
>STROBJ->flAccel contains SO_GLYPHINDEX_TEXTOUT, "pwszOrg
points to an
>array of glyph indexes, rather than a Unicode array." As
hard as I
>tried, I could not figure out how to convert this array
of glyph
>indexes back into Unicode characters. Am I missing
something here?
>Please help!
>
>Regards.
>.
>