JD Cole <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:

>      Has anyone looked into supporting languages which don't
>      have a
> one-to-one key to character mapping? The two languages I'm
> most familiar with are Japanese and Chinese, both of which
> require at least two key hits to enter a single phonetic
> character.

See <URL: http://www.libsdl.org/intro/usingevents.html > and
<URL: http://sdldoc.csn.ul.ie/sdlenableunicode.php >:

         SDL has international keyboard support, translating key
         events and placing the UNICODE equivalents into
         event.key.keysym.unicode. Since this has some
         processing overhead involved, it must be enabled using
         SDL_EnableUNICODE().

To *render* non-Latin1 characters, replace:

TTF_RenderText_Solid

with

TTF_RenderUTF8_Solid

for UTF-8 encoded text, or

TTF_RenderUNICODE_Solid

for UTF-16 encoded text.

-- 
Karl Ove Hufthammer
_______________________________________________
Tuxtype-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxtype-dev

Reply via email to