You would use PgDrawText to actually draw a string.
This one only accept UTF-1 or UCS-2 if a flag is set. i looked in the
Pg.h file, and there is a Pg_TEXT_VWIDECHAR define, which claims to be
UTF-4 (hmm, that really should be UCS-4 , i think someone made a boobo
> )(same for Pg_TEXT_WIDECHAR , as the docs say this mean UCS-2, but
header say UTF-2 > > ) unfortunatly this is commented out. is it safe to
use it?(latest beta) Will it be there in final 6.2?
OK, for PgDrawText, here is what it is:
no flags - UTF-8 multi-byte
Pg_TEXT_WIDECHAR - UTF-16 (UCS-2) 16-bit wide characters
Currently there is no roadmap plan for UTF-32 (UCS-4) 32-bit wide characters
in the PgXX routines, though I have heard rumblings. It is not
safe to use the Pg_TEXT_VWIDECHAR flag. It is best to stick
with multi-byte if at all possible, since the widget library
does not use wide characters of any type.
In 6.2, there are routines PfExtent/PfExtentCx which
can process all three types (multi-bytes, 16-bit wide characters,
and 32-bit wide characters).
For 6.3, I have changed the header file to be:
#define Pg_TEXT_UTF16CHAR (0x04 <<
/ Fix a misunderstanding. /
/ It is either UTF-8, UTF-16 (UCS2), or UTF-32 (UCS2) /
#define Pg_TEXT_UTF2CHAR Pg_TEXT_UTF16CHAR /* This is wrong, but history prevails. /
/#define Pg_TEXT_UTF32CHAR (0x02 << */
#define Pg_TEXT_WIDECHAR (Pg_TEXT_UTF16CHAR)
/*#define Pg_TEXT_VWIDECHAR (Pg_TEXT_UTF32CHAR) */