nanogui: buggy display of DrawTextW() (using big5charset ttf)


Previous by date: 1 Jun 2000 08:22:58 -0000 Kaffe port, Roman Guseynov
Next by date: 1 Jun 2000 08:22:58 -0000 buggy display of DrawTextW() (using big5charset ttf), JauMing Tseng
Previous in thread:
Next in thread: 1 Jun 2000 08:22:58 -0000 buggy display of DrawTextW() (using big5charset ttf), JauMing Tseng

Subject: buggy display of DrawTextW() (using big5charset ttf)
From: ####@####.####
Date: 1 Jun 2000 08:22:58 -0000
Message-Id: <004101bfcad9$e5c57420$1b0448c0@gv.com.tw>

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;



Previous by date: 1 Jun 2000 08:22:58 -0000 Kaffe port, Roman Guseynov
Next by date: 1 Jun 2000 08:22:58 -0000 buggy display of DrawTextW() (using big5charset ttf), JauMing Tseng
Previous in thread:
Next in thread: 1 Jun 2000 08:22:58 -0000 buggy display of DrawTextW() (using big5charset ttf), JauMing Tseng


Powered by ezmlm-browse 0.20.