Unicode problem with TChart OpenGL

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
X-ray
Newbie
Newbie
Posts: 8
Joined: Mon Jan 25, 2016 12:00 am

Unicode problem with TChart OpenGL

Post by X-ray » Tue Dec 20, 2016 8:40 am

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 6789 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

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Unicode problem with TChart OpenGL

Post by Yeray » Wed Dec 21, 2016 7:59 am

Hello,

I'm afraid OpenGL doesn't support double-byte charactersets, it is not Unicode compliant.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

X-ray
Newbie
Newbie
Posts: 8
Joined: Mon Jan 25, 2016 12:00 am

Re: Unicode problem with TChart OpenGL

Post by X-ray » Wed Dec 21, 2016 6:24 pm

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

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Unicode problem with TChart OpenGL

Post by Yeray » Fri Dec 23, 2016 11:29 am

Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1728
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply