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


[<<] [<] Page 1 of 1 [>] [>>]
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;


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/
Subject: Re: buggy display of DrawTextW() (using big5charset ttf)
From: "Greg Haerr" ####@####.####
Date: 1 Jun 2000 18:16:16 -0000
Message-Id: <032101bfcbf5$d508e820$3017dbd0@censoft.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
:  
I'll take a look at this.  Can you send me kaiu.ttf?

Regards,

Greg


Subject: Re: buggy display of DrawTextW() (using big5charset ttf)
From: "Greg Haerr" ####@####.####
Date: 9 Jun 2000 19:18:35 -0000
Message-Id: <03d601bfd247$e6da2430$3017dbd0@censoft.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

I understand that this problem was "fixed" by setting
transparent background when drawing text.  Is it
still buggy however when the background color is drawn?

Regards,

Greg


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.