Hi,
I am working on monolithic printer drivers on Win 98. I have encountered a
bug in font module.
Some special chinese characters are not printing properly. Eg. The character
with unicode value 0x3224. Its glyph index is 680. The problem is, in
ExtTextOut, the FontInfo is of type PF_RASTER_TYPE eventhough in
RealizeObject the font is realized as PF_VECTOR_TYPE. So in ExtTextOut, I am
unable to get the glyph index or char code of the character in lpString(All
I get is 0x03 instead of 680, the glyph index). I hardcoded the glyph index
in ExtTextOut and checked, it worked fine. So i guess its just a matter of
obtaining the correct glyph index.
I have not handled PF_RASTER_TYPE fonts in the driver. So the problem can be
fixed either by handling that or by obtaining the FontInfo as
PF_VECTOR_TYPE. Any pointers into either one of these will be very helpful.
The font name is SimSun(GB2312_CHARSET).
Thanks,
Rahul