Board index » delphi » System.Textout

System.Textout


2007-06-05 12:47:30 AM
delphi196
If PChar(text) is String in Chinese language character ?became X
Using WideString all characters are correct but distance between each
character is double!!
 
 

Re:System.Textout

Greborio Robert writes:
Quote
If PChar(text) is String in Chinese language character ?became X
Using WideString all characters are correct but distance between each
character is double!!
To render a Widestring you have to use the TextoutW API function (or
one of the other text output functions the API offers, like ExtTextoutW
or DrawTextW. The TCanvas methods map to the A (ansi) versions of the
API functions, so they would not interpret a Widestring forced down
their throat correctly.
--
Peter Below (TeamB)
Don't be a vampire (slash7.com/pages/vampires),
use the newsgroup archives :
www.tamaracka.com/search.htm
groups.google.com
 

Re:System.Textout

Thank you very well the TxtTextoutW works correctly.
"Peter Below (TeamB)" <none>ha scritto nel messaggio
Quote
Greborio Robert writes:

>If PChar(text) is String in Chinese language character ?became X
>Using WideString all characters are correct but distance between each
>character is double!!

To render a Widestring you have to use the TextoutW API function (or
one of the other text output functions the API offers, like ExtTextoutW
or DrawTextW. The TCanvas methods map to the A (ansi) versions of the
API functions, so they would not interpret a Widestring forced down
their throat correctly.

--
Peter Below (TeamB)
Don't be a vampire (slash7.com/pages/vampires),
use the newsgroup archives :
www.tamaracka.com/search.htm
groups.google.com