>It appears that with the PalmOS 4.1 Japanese ROMs, one can draw Kanji
>symbols/characters to the display by just embedding Shift-JIS byte-codes
>into a c-string, and passing that to WinDrawChars(), using the default font.
>Where is this documented (in English!)?

On any device, the set of characters in the standard fonts that can 
be drawn using WinDrawChars (and measured using FntCharsWidth, etc) 
is defined by the device's character encoding.

Call FtrGet(sysFtrCreator, sysFtrNumEncoding, &encoding) to get the 
character encoding. This will be charEncodingPalmLatin or 
charEncodingPalmShiftJIS for all current devices based on versions of 
Palm OS provided by Palm.

For 3rd party hacks and versions of the OS released by licensees, 
you'll have to experiment to see what value they return for the 
encoding.

>And where is the method and encoding for displaying Simplified/Traditional
>symbols/characters under the Chinese version of the PalmOS ROMs (Acer)
>documented?  (Somewhere on this list, it says not Unicode.)  What is the
>correct method for an non-internationalized application to determine
>whether these characters/fonts/symbols are available for display.

As per above, call FtrGet. For Acer's Traditional Chinese device 
(sold in Taiwan) I believe it will return charEncodingBig5 (60), and 
for Acer's Simplified Chinese device (sold in China) it should return 
charEncodingGB2312 (58).

-- Ken
-- 
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to