nanogui: Cyrillic font buit-in
Subject:
Re: [nanogui] Cyrillic font buit-in
From:
Cristian Chiarello ####@####.####
Date:
13 May 2008 10:38:14 -0000
Message-Id: <48296FC6.1010006@fimm.com>
Greg Haerr:
>
> Win32 doesn't provide a way to specify text encoding, so
> you'll have to force it in the GdText call in the MwExTextOut
> function, which I think is in src/mwin/winuser.c or winfont.c
The editbox component source is microwindows/src/mwin/winlib/newedit.c
that define neTextOut as TextOutW, function defined at 757 of
microwindows/src/mwin/wingdi.c. This one, call MwExtTextOut with UC16
encoding.
I have modified this:
return MwExtTextOut(hdc, x, y, 0, NULL, lpszString, cbString, NULL,
MWTF_UC16 );
with
return MwExtTextOut(hdc, x, y, 0, NULL, lpszString, cbString, NULL,
MWTF_UTF8 );
Debugging, the function is called but the symbols are still wrong (the
same as MWTF_UC16).
Regards, Cristian