Page 1 of 1

Unicode problem with TChart OpenGL

Posted: Tue Dec 20, 2016 8:40 am
by 16577506
Hello,

I just noticed that when we use Unicode text (Japanese, Chinese for example) for TChart in OpenGL mode that
the Axis labels are wrongly painted:
OpenGLUnicodeBugCapture.PNG
OpenGLUnicodeBugCapture.PNG (394.02 KiB) Viewed 6998 times
We are using Delphi Seattle Update 1 and TeeChart Pro v2016.19.161025 32bit VCL
Is that Unicode problem "by design" or can/will it be solved ?

best regards,

X-ray

Re: Unicode problem with TChart OpenGL

Posted: Wed Dec 21, 2016 7:59 am
by yeray
Hello,

I'm afraid OpenGL doesn't support double-byte charactersets, it is not Unicode compliant.

Re: Unicode problem with TChart OpenGL

Posted: Wed Dec 21, 2016 6:24 pm
by 16577506
Hello Yeray,

I think a possible solution for this is to draw the (Unicode) text to an image and use that image as a texture.
In that way it's possible to paint any Unicode character.

best regards,

X-ray

Re: Unicode problem with TChart OpenGL

Posted: Fri Dec 23, 2016 11:29 am
by yeray
Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1728