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 » Help for Indian Language Unicode display
Re: Help for Indian Language Unicode display [message #34467 is a reply to message #34420] Thu, 24 November 2011 15:23 Go to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Referring to Lance thread about CJK fonts. I have done some tests.
Results from log file for DDUMP

Results are with following change in struct sRFace

sFontReplacements[] = {
	{ "sans-serif", 0xffee0008, 0xdc000801 },
	{ "Arial", 0xfffe0000, 0x9c000801 },
	{"\346\226\260\345\256\213\344\275\223", 0xfd800000, 0x9ffff00d },//SimSun (or New Song Ti)
	{"SimSun", 0xfd800000, 0x9ffff00d },//SimSun (or New Song Ti)
	{"\345\256\213\344\275\223", 0xfd800000, 0x9ffff00d }, // Song Ti
	{"\345\276\256\350\275\257\351\233\205\351\273\221", 0xfd800000, 0x9ffff00f }, //MS Ya Hei
	{"Microsoft YaHei", 0xfd800000, 0x9ffff00f }, //MS Ya Hei
	{"gargi",0xffffffff,0xffffffff}, // Gargi
	{"Chandas",0xffffffff,0xffffffff}, // Chandas
	{"Kedage",0xffffffff,0xffffffff}, // Gargi
	{"Mallige",0xffffffff,0xffffffff}, // Gargi
	{"Lohit Hindi",0xffffffff,0xffffffff}, // Lohit Hindi



	Font f = fnt;
	dword tl = chr < 4096 ? 0x80000000 >> (chr >> 7) : 0;
	dword th = 0x8000000 >> ((dword)chr >> 11);
//	DDUMP(FormatIntHex(chr));
//	DDUMP(FormatIntHex(th));
	for(int i = 0; i < rface.GetCount(); i++) {
//		DDUMP(Font(rface[i], 10));
//		DDUMP(FormatIntHex(h[i]));
//		DDUMP(FormatIntHex(h[i] & th));
		if(((l[i] & tl) || (h[i] & th)) && IsNormal(f.Face(rface[i]), chr)) {
			int a = fnt.GetAscent();



FormatIntHex(chr) = 00000930
FormatIntHex(th) = 40000000
Font(rface[i], 10) = <sans-serif:10>
FormatIntHex(h[i]) = dc000801
FormatIntHex(h[i] & th) = 40000000
Font(rface[i], 10) = <gargi:10>
FormatIntHex(h[i]) = ffffffff
FormatIntHex(h[i] & th) = 40000000
FormatIntHex(chr) = 0000093e
FormatIntHex(th) = 40000000
Font(rface[i], 10) = <sans-serif:10>
FormatIntHex(h[i]) = dc000801
FormatIntHex(h[i] & th) = 40000000
Font(rface[i], 10) = <gargi:10>
FormatIntHex(h[i]) = ffffffff
FormatIntHex(h[i] & th) = 40000000
FormatIntHex(chr) = 00000937
FormatIntHex(th) = 40000000
Font(rface[i], 10) = <sans-serif:10>
FormatIntHex(h[i]) = dc000801
FormatIntHex(h[i] & th) = 40000000
Font(rface[i], 10) = <gargi:10>
FormatIntHex(h[i]) = ffffffff
FormatIntHex(h[i] & th) = 40000000
FormatIntHex(chr) = 0000094d
FormatIntHex(th) = 40000000
Font(rface[i], 10) = <sans-serif:10>
FormatIntHex(h[i]) = dc000801
FormatIntHex(h[i] & th) = 40000000
Font(rface[i], 10) = <gargi:10>
FormatIntHex(h[i]) = ffffffff
FormatIntHex(h[i] & th) = 40000000
FormatIntHex(chr) = 0000091f
FormatIntHex(th) = 40000000
Font(rface[i], 10) = <sans-serif:10>
FormatIntHex(h[i]) = dc000801
FormatIntHex(h[i] & th) = 40000000
Font(rface[i], 10) = <gargi:10>
FormatIntHex(h[i]) = ffffffff
FormatIntHex(h[i] & th) = 40000000
FormatIntHex(chr) = 0000093f
FormatIntHex(th) = 40000000
Font(rface[i], 10) = <sans-serif:10>
FormatIntHex(h[i]) = dc000801
FormatIntHex(h[i] & th) = 40000000
Font(rface[i], 10) = <gargi:10>
FormatIntHex(h[i]) = ffffffff
FormatIntHex(h[i] & th) = 40000000


GUI_APP_MAIN
{
	for(int i = 0; i < Font::GetFaceCount(); i++)
		LOG(Font::GetFaceName(i));
}



Results for font list.

STDFONT
serif
sans-serif
monospace
UnDotum
LMMonoLt10
Samyak Devanagari
Century Schoolbook L
OpenSymbol
Khmer OS System
Nakula
Chandas
LMSansQuot8
Lohit Nepali
LMMathSymbols10
LMRomanSlant9
LMRomanSlant8
LMSans9
LMSans8
Mukti Narrow
Meera
Kalimati
Vemana2000
Lohit Maithili
LMMonoSlant10
Umpush
Purisa
Pothana2000
DejaVu Sans Mono
Norasi
Loma
URW Palladio L
Phetsarath OT
Sawasdee
Sahadeva
Tlwg Typist
URW Gothic L
Dingbats
URW Chancery L
FreeSerif
ori1Uni
WenQuanYi Micro Hei Mono
Kedage
DejaVu Sans
Kinnari
LMSans17
LMSans12
LMSans10
Lohit Punjabi
LMRoman17
LMRoman12
LMRoman10
TlwgMono
Symbol
LMRomanDunh10
LMRoman7
LMRoman6
LMRoman5
LMRoman9
LMRoman8
Bitstream Charter
KacstOne
Lohit Kashmiri
Khmer OS
Liberation Mono
Courier 10 Pitch
Nimbus Sans L
TlwgTypewriter
TakaoPGothic
LMRomanDemi10
Rachana
WenQuanYi Micro Hei
LMMonoCaps10
Samanata
LMMonoLtCond10
Standard Symbols L
Lohit Marathi
Lohit Gujarati
Nimbus Mono L
Nimbus Mono L
Liberation Serif
Lohit Sindhi
Mallige
LMMathItalic10
Nimbus Roman No9 L
LMMathItalic12
LMRomanUnsl10
Lohit Konkani
Liberation Sans
LMMono10
LMMono12
LMMathItalic7
LMMathItalic6
LMMathItalic5
LMMathItalic9
LMMathItalic8
Mukti Narrow
LMMathSymbols6
LMMathSymbols7
LMMathSymbols5
FreeSans
LMMathSymbols8
LMMathSymbols9
Sarai
LMMono8
LMMono9
LMMathExtension10
Lohit Tamil
Tlwg Typo
LMRomanCaps10
UnBatang
Lohit Bengali
LMSansDemiCond10
LMRomanSlant10
LMRomanSlant12
LMRomanSlant17
Waree
gargi
Lohit Hindi
DejaVu Serif
Saab
LMMonoProp10
Garuda
Rekha
URW Bookman L
LMMonoPropLt10
FreeMono


Warm Regards

Deepak
 
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: Export and import .tr files in other languages than english<-->LANG
Next Topic: Ctrl responds to Language-Setting event?
Goto Forum:
  


Current Time: Sat May 11 23:11:38 CEST 2024

Total time taken to generate the page: 0.02964 seconds