When using the GDI+ canvas and outputting e.g., Chinese text, there are garbage characters shown after the text. This was tested with TeeChart 8.02.
Normal GDI canvas works ok, single byte text works ok.
The problem seems to be in TeeGDIPlus.pas at the end of the routine TextOut.
There the call to FGraphics.DrawString has a parameter Length(Text), which is only correct for single-byte strings.
The problem can be solved by replacing
Length(Text)
with
ByteToCharLen(Text, Length(Text))
Hopefully this issue can be fixed to the upcoming version.
Multibyte character text output with GDI+ canvas
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tsiipola,
Thanks for your report. We will try to implement this for the next maintenance release. However, we will have to be very careful as this may break Unicode compatibility for next Delphi "Tiburón".
Thanks for your report. We will try to implement this for the next maintenance release. However, we will have to be very careful as this may break Unicode compatibility for next Delphi "Tiburón".
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |