Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Unicode UTF-8 strings texting

Author
Message
Scary Little Rabbit
14
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 20th Oct 2016 19:57 Edited at: 16th Dec 2016 09:10
OK, since AppGameKit is still working on Ubuntu:



gist.

you need UTF8.agc to get it working. and some font image with well prepared 'subimages.txt' of course.

there is an example project with UTF8.agc and 'Russo One' font (incomplete but still) in attached archive.

have fun. NO FUN ANYMOREthat's all, folks!
error #1:
'too many stars, too many stares. disembody.'
Unicode yours

Attachments

Login to view attachments
Scary Little Rabbit
14
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 21st Oct 2016 09:57
* changed txtCreate() to receive font size parameter after font index parameter
* fixed txtGetVisible(), txtGetColorR(), txtGetColorG(), txtGetColorB() and txtGetColorA()
* added txtGetHitTest() and txtSetScissor()
error #1:
'too many stars, too many stares. disembody.'
Unicode yours
Scary Little Rabbit
14
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 25th Oct 2016 17:12
* changed internal mechanism for texts' building and handling. there were memblocks for each char of font which were resulting in one sprite for each text, now there's font subimages and each text has bunch of sprites for each char of it. it's a way faster and now it's easier to setup every single char color and angle (not yet implemented).
* added txtGetHeight()
error #1:
'too many stars, too many stares. disembody.'
Unicode yours
Scary Little Rabbit
14
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 31st Oct 2016 22:50
* changed txtSetSize() to reset size of text to its original size and not to _txtSizeDefault if size parameter is below 0
* fixed unnecessary second parameter of txtGetVisible(), new or changed chars of string of hidden text were appearing, new chars of string of fixed text were not fixed
* added _txtFilterMinDefault and _txtFilterMinDefault to control default filtering of images of all fonts, txtCheck() to txtDelete(), some checks to few other functions
error #1:
'too many stars, too many stares. disembody.'
Unicode yours
Scary Little Rabbit
14
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 16th Dec 2016 09:02
OK, it's obsolete since version 2.0.22 is out with built-in support of UTF-8 and TTF fonts. and more over — the code of UTF8.agc is broken. I see no reason to fix it, all you need is an upgrade to version 2.0.22.
error #1:
'too many stars, too many stares. disembody.'
Unicode yours

Login to post a reply

Server time is: 2024-03-19 03:13:21
Your offset time is: 2024-03-19 03:13:21