Page 1 of 1

Japanese font

Posted: Tue Jan 31, 2006 11:25 pm
by 14580
Hi,
I am new to this forum.
I am desperate for your help.
I have TeeChart Pro V4 ActiveX. I've been using it to export JPG image for my charts.
In the OnAfterDraw() event handler, I specify some font for the text to be printed out in the canvas:
m_TChart.GetCanvas().GetFont().SetName("Arial");

and then I use:
m_TChart.GetCanvas().TextOut("Some Text");
to print out the text.

Here is my problem: my new development machine(a desktop with Windows XP) doesn't export the Japanese text nicely anymore.
The text width is stretched too much. It was totally ok with my old machine (a desktop with windows 2000).
So where does TeeChart grab the Japanese font from and how do I get the nice font from the old machine and place in the new machine?
Or is there any setting they I need to change in my system?
We have UTF8 encoding, no UNICODE here.

Thanks a bunch.

Thuy

Posted: Thu Feb 09, 2006 10:15 pm
by 14580
To whom who may have the same problem.
I have found the root of the problem. It is not TeeChart related problem.
When the system tries to find some font that's usable for Japanese and not find one, it links to some different font that is not good for Japanese.
I went into the registry and add a new key for FontLink under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
and create entries with the same values as the old system. And then I copy the fonts from the old system to the new system (only the missing ones).

Notes: this is a little dangerous to do this as you don't know if you are going to mess up the registry.