nanogui: buggy display of DrawTextW() (using big5charset ttf)
Subject:
buggy display of DrawTextW() (using big5charset ttf)
From:
JauMing Tseng ####@####.####
Date:
1 Jun 2000 08:30:55 -0000
Message-Id: <20000601083123.14465.qmail@web2103.mail.yahoo.com>
buggy display of DrawTextW() (using big5charset true
type font)
half right part of [1st char to n-1 char] is filled by
brush color
however, modified ftdemo is correct to display (using
big5charset true type font)
do i miss some setting or is this a bug??
thanks in advanced!:)
following code snip:
HGDIOBJ oldfont;
WCHAR test[]={ 0x66fe, 0x662d, 0x660e, 0x0000 };
[...]
case WM_PAINT:
/*case WM_MOUSEFIRST:*/
hdc=BeginPaint(hwnd,&ps);
GetClientRect(hwnd,&rect);
oldfont=SelectObject(hdc,CreateFont(24,
0,0,0,0,0,0,0,0,0,0,0,
FF_SWISS|VARIABLE_PITCH,
"/fatc/win99/fonts/kaiu.ttf"));
DrawTextW(hdc, test, -1, &rect,
DT_SINGLELINE|DT_CENTER|DT_VCENTER);
DeleteObject(SelectObject(hdc,oldfont));
EndPaint(hwnd,&ps);
break;
=====
--
Regards,
Kevin.:)
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/