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 » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » It's suspected to be an issue with Font.
Re: It's suspected to be an issue with Font. [message #32308 is a reply to message #32307] Sat, 07 May 2011 17:39 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
Sorry but it's getting more complicated than we had expected.

I did test on another Windows XP machine. Here is the font replacement table:
struct sRFace {
	const char *name;
	dword l, h;
} sFontReplacements[] = {
	{ "sans-serif", 0xffee0008, 0xdc000801 },
	{ "Arial", 0xfffe0000, 0x09c00080 },
	{"\346\226\260\345\256\213\344\275\223", 0xfd800000, 0x09ffff00 },//SimSun (or New Song Ti)
	{"\345\256\213\344\275\223", 0xfd800000, 0x09ffff00 }, // Song Ti
	{"\345\276\256\350\275\257\351\233\205\351\273\221", 0xfd800000, 0x09ffff00 }, //MS Ya Hei
	{"\351\273\221\344\275\223", 0xfd800000, 0x09ffff00 },  // Hei Ti
	
	{ "Arial Unicode MS", 0xfffc3fef, 0xfa7ff7e7 },
	{ "SimSun", 0xfd800000, 0x09ffff00 },
	{ "MS UI Gothic", 0xffc01008, 0x0fffff00 },
	{ "MS Mincho", 0xffc01008, 0x0fffff00 },
	{ "WenQuanYi Zen Hei Mono", 0xfd800000, 0x0ae7ff7e },
	{ "WenQuanYi Zen Hei", 0xfd800000, 0x0ae7ff7e },
	{ "VL Gothic", 0xfd800000, 0x09a7ff80 },
	{ "VL PGothic", 0xffe00008, 0x0de7ff80 },
	{ "UnDotum", 0xe5800000, 0x0aa7ff7e },
	{ "UnBatang", 0xe5800000, 0x0aa7ff7e },
	{ "DejaVu Sans Mono", 0xffec0004, 0x0fc00080 },
	{ "DejaVu Sans", 0xfffd000c, 0x0fc40080 },
	{ "AlArabiyaFreeSerif", 0xffdc0008, 0xd8000007 },
	{ "Kochi Mincho", 0xffdc0008, 0xd8000007 },
	{ "Kochi Gothic", 0xffdc0008, 0xd8000007 },
	{ "Sazanami Mincho", 0xffdc0008, 0xd8000007 },
	{ "Sazanami Gothic", 0xffdc0008, 0xd8000007 },
	{ "Gulim", 0xf7c00000, 0x0ba7ff7e },
	{ "PMingLiU", 0xff800000, 0x09ffff00 },
	{ "FreeSans", 0xfff23d00, 0x0fc00000 },
	{ "FreeSerif", 0xfffd3938, 0x0fc00080 },
	{ "Symbol", 0xe4000000, 0x88000002 },
};


Here is the result of font enumeration on the machine:
STDFONT
Times New Roman
Arial
Courier New
Symbol
Wingdings
Tahoma
System
Terminal
Fixedsys
Roman
Script
Modern
Small Fonts
MS Serif
WST_Czec
WST_Engl
WST_Fren
WST_Germ
WST_Ital
WST_Span
WST_Swed
Courier
MS Sans Serif
Marlett
Lucida Console
Lucida Sans Unicode
Verdana
Arial Black
Comic Sans MS
Impact
Georgia
Franklin Gothic Medium
Palatino Linotype
Trebuchet MS
Webdings
Estrangelo Edessa
Gautami
Latha
Mangal
MV Boli
Raavi
Shruti
Tunga
Sylfaen
Microsoft Sans Serif
Arial Unicode MS
Book Antiqua
Bookman Old Style
Century
Century Gothic
Garamond
MS Outlook
Wingdings 2
Wingdings 3
MS Reference Sans Serif
MS Reference Specialty
方正舒体
方正姚体
华文彩云
华文细黑
华文行楷
华文新魏
华文中宋
隶书
宋体-方正超大字符集
幼圆
Haettenschweiler
Bookshelf Symbol 7
Bitstream Vera Sans
Bitstream Vera Serif
Bitstream Vera Sans Mono
Myriad Web Pro
Myriad Web Pro Condensed
Arial Narrow
Kartika
Vrinda
Lucida Sans
Free 3 of 9 Extended
Free 3 of 9
DejaVu Sans Condensed
DejaVu Serif
DejaVu Serif Condensed
DejaVu Sans Mono
DejaVu Sans
DejaVu Sans Light
OpenSymbol
MS Mincho
MS PMincho
MS Gothic
MS PGothic
MS UI Gothic
Gulim
GulimChe
Dotum
DotumChe
Batang
BatangChe
Gungsuh
GungsuhChe
宋体                              <----- This is Song Ti
新宋体                            <------ This is SimSun
宋体-PUA
黑体
MingLiU
PMingLiU
微软雅黑
f.GetFaceName() = Arial Unicode MS
f.GetFaceName() = Arial Unicode MS
f.GetFaceName() = Arial Unicode MS
f.GetFaceName() = Arial Unicode MS



And here is the font substitution report:
f.GetFaceName() = Arial Unicode MS
f.GetFaceName() = MS UI Gothic
f.GetFaceName() = Arial Unicode MS
f.GetFaceName() = Arial Unicode MS


And the text use to generate the substitution result is 颜色不错.

SimSun and Song Ti are skipped even though the font are present in the system and they are supposed to take precedence over Arial Unicode MS and MS UI Gothic. The more weired thing is it works just fine on Windows Vista and Ubuntu. Will do a test on a Windows 7 Machine.
 
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
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: There are too short lines after synchronization. t files.
Next Topic: A proposal: Adding a Translation & Localization GUI to TheIDE
Goto Forum:
  


Current Time: Sat Apr 27 20:16:32 CEST 2024

Total time taken to generate the page: 1.95830 seconds