http://sufikatha.com
Nishanth's Blog | May 2009

ChartDirector font problem with chinese/japanese/korean fonts

by Nishanth 12. May 2009 00:11

I was working on a web app which supported 20+ languages across the world. One report which we developed was using ChartDirector (http://www.advsofteng.com/gallery.html) in verdana font. After development we found that ChartDirector is not displaying chinese/japanese/korean characters. it was displaying  junk boxes instead. On Investigation, it was found that the issue was with  Verdana as Verdana does not support Unicode characters for japanese, chinese , korean etc. I searched in the net for a solution and found in the ChartDirector forum that the tech support of ChartDirector is advising people to use a font called "MingLiU" (which I don't think is free). I didn't like the idea of installing seperate fonts for each locale that we support. Just then I thought why don't we use a common unicode font which is available with Windows. This thought took me to "Arial Unicode MS" which is the best bet for displaying all unicode characters and it was free with Windows XP/ Windows 2003. I replaced verdana with "Arial Unicode MS" in the code and it worked perfectly!!!

sample code:     bc.xAxis().setLabelStyle("Arial Unicode MS", 9);

 

 

All Good Websites

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About Me

Nishanth Nair  

 A die hard fan of Rise of Nations... I write few softwares for McAfee Inc. for a living.

 

Portfolio:
http://Necab.org
http://SufiKatha.com
http://DeepaRecipes.com
http://ManipalFoundation.in
http://NetraArts.com
http‌://EnWebTech.com
Contact : Nair.Nishanth@Gmail.com 

All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Tag cloud

The World This Second

free counters