> I want to display chinese in my app.I use win32 api with only > HAVE_GB2312_SUPPORT setted.I add a function to display chinese using > MwExtTextOut with flags MWTF_DBCS_EUCCN passed and it worked!I think it > was using gb2312.c generated from hzk12!
This works because microwindows converts GrText or MwExtTextOut data from the passed MWTF_xxx input format to the output format required by the current font. This conversion is done by engine/devfont.c::GdConvertEncoding(). > But now I want to display chinese character of 24 or any other size and > ascii chars of different sizes!How can I do that?Which fontprocs->DrawText > do the font drawing work?Anyone knows that? You will have to load your own .ttf or .pcf font using GrCreateFont or CreateFont/CreateFontIndirect, and then MwExtTextOut to output the desired characters. > by the way, can anyone explain the meanings of the args in MwExtTextOut? They are the same as the standard win32 ExtTextOut, except the last parameter, flags, is used to specify the input character encoding, using one of the MWTF_xxx (like MWTF_DBCS_EUCCN) character encodings. Regards, Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]