Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » FileSel&FileList, Path » FileSel bug when displaying Han characters
Re: FileSel bug when displaying Han characters [message #15028 is a reply to message #15026] Wed, 26 March 2008 13:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Nope, I was wrong:

void MyApp::Paint(Draw& w)
{
	w.DrawRect(GetSize(), SWhite);
	WString txt = "皆の日本語";
	Font fnt[4] = { StdFont(30), Arial(30), Roman(30), Courier(30) };
	for(int i = 0; i < 4; i++) {
		Size sz = GetTextSize(txt, fnt[i]);
		w.DrawRect(10, 100 + 50 * i, sz.cx, sz.cy, LtGray());
		w.DrawText(10, 100 + 50 * i, txt, fnt[i]);
	}
}


So it seems to return correct values for StdFont (which in fact is Tahoma) and Courier, wrong values for Arial, Times New Roman...

Damn it...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Getting the file type. (binary vs text files)
Next Topic: FileSel ExecuteSaveAs replace file prompt bug
Goto Forum:
  


Current Time: Sun Apr 28 15:17:05 CEST 2024

Total time taken to generate the page: 0.05713 seconds