Home » U++ Library support » FileSel&FileList, Path » FileSel bug when displaying Han characters
Re: FileSel bug when displaying Han characters [message #15026 is a reply to message #15023] |
Wed, 26 March 2008 13:05 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
OK, further investigation:
void MyApp::Paint(Draw& w)
{
w.DrawRect(GetSize(), SWhite);
WString txt = "皆の日本語";
Size sz = GetTextSize(txt, StdFont(30));
w.DrawRect(100, 100, sz.cx, sz.cy, LtGray());
w.DrawText(100, 100, txt, StdFont(30));
sz = GetTextSize(txt, Arial(30));
w.DrawRect(100, 200, sz.cx, sz.cy, LtGray());
w.DrawText(100, 200, txt, Arial(30));
}
...it looks like Win32 always paints it using some standard font other than Arial. Standard GUI font returns correct metrics for this font; Arial returns wrong metrics.
Now tell me what to do with this... I certainly could take metrics from different font, but that sounds a little bit weird... (and I am not sure it would always work).
Mirek
|
|
|
|
|
FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Sun, 23 March 2008 14:18
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Sun, 23 March 2008 14:15
|
|
|
Re: FileSel bug when displaying Han characters
By: mr_ped on Mon, 24 March 2008 13:17
|
|
|
Re: FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Mon, 24 March 2008 14:29
|
|
|
Re: FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 10:23
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 11:55
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 13:05
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 13:19
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 13:31
|
|
|
Re: FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 16:59
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Wed, 26 March 2008 17:02
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Sat, 29 March 2008 15:44
|
|
|
Re: FileSel bug when displaying Han characters
|
|
|
Re: FileSel bug when displaying Han characters
By: mirek on Sun, 30 March 2008 14:19
|
|
|
Re: FileSel bug when displaying Han characters
By: zsolt on Wed, 26 March 2008 11:58
|
|
|
Re: FileSel bug when displaying Han characters
|
Goto Forum:
Current Time: Sun Apr 28 06:24:01 CEST 2024
Total time taken to generate the page: 0.03111 seconds
|