PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

International support in CGapiBitmapFont

I would like to make a localized version of my program. This means that I need to write letters that do not belong to English alphabet. Can anyone suggest me something that will help me to solve this problem :?: Thanks in advance :wink:
Is adding international support is planned in future releases of GapiDraw :?:
I dont see easy way to make unicode CGapiBitmapFont (image will be too big even if we skip all unused letters and it will be too difficult to create such font), but may be authors know how to do it easy.

I need to make multilanguage too and I planing to do following:

1. create bitmap font that have national alphabet in place of English alphabet.
2. before showing string, encode it moving simbols from its unicode positions to English alphabet position:
Code:

if ((str[i] >= start_national_unicode)&&(str[i] <= finish_national_unicode))
str[i] = str[i] - start_national_unicode + 'A';

3.Because any way I'm using wrapping class StringVO for showing strings that have methods setString(s) and getString(), I could place encoding/decoding parts in these methods and keep in StringVO already encoded string.

May be something like this (improved ofcourse) could be implemented in GapiDraw 1.1.
If authors will make something more powerfull I would be happy to use they solution :wink: .

Best regards,
AndreyT.