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 / Special Characters

Author
Message
Drago
10
Years of Service
User Offline
Joined: 20th Aug 2013
Location:
Posted: 31st Aug 2013 05:01
Well, Id like to know if it possible use special characters as "ç" or "ã" in texts.

I did not realize how and this is important for me.

Im using to develop Windows with IDE saving in UTF-8. My App will run in iOS and Android.

Any ideas? The best thing I founded was SetTextExtendedFontImage but I don have a good example how to use it.

Thanks to any help!

----------------------------------------------
www.xuti.net
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Sep 2013 17:31
Quote: "Any ideas? The best thing I founded was SetTextExtendedFontImage but I don have a good example how to use it."

This is the correct method, actually you can create a font for any character but there are no tools I am aware of for creating extended font images. Unless anyone would care to correct me.

I am moving this to the main AppGameKit forum as it is a general question rather than iOS specific and you might get a more informed answer there.

"Everything should be made as simple as possible, but not simpler."
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 3rd Sep 2013 18:54 Edited at: 3rd Sep 2013 23:48
i using blitzbasic 3d for bitmap font creation from a ttf font.
this produce one image with char 0-255 and
at SetTextFontImage & SetTextExtendedFontImage i use the same image.
if you want show text exact with this codepage you can create a string with ""+chr(charcode)
maybe if you have blitzbasic too, i can give you the source.
also you can paint your chars (input text) in gimp.
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 3rd Sep 2013 19:39
is there an easy way to create charset with GIMP? Would you pls give us an hint?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 3rd Sep 2013 20:39
I use Photo Shop Elements to create my files. But any image editor that lets you create an image and type text into it will be fine.

GIMP has a text boxish option. At least in the GIMP on my Linux box, the Toolbox has a nice big 'A' and when I click on it, it lets me create a text box and type text in it.

It is common to split the file up into 16 characters per row.

And you want to have a clear background (transparent, nothing there) and the letters should be white so that they can accept the colors assigned with SetTextColor.

If, by some miracle, your font is a fixed width, then you don't need the subimages file, just make sure the file is 16 characters by 8 rows in the correct order for ascii values 128-255. And the character width must be divisible by 16 and the height by 8.

The image used for a character sets (of all types), is basically a file with the images ("<fontname>.png") and a subimages file that associates the ascii id with the piece of the image ("<fontname> subimages.txt", and the space after <fontname> is deliberate).

I've attached a sample image file.

The associated subimages file looks like this:


The format for the subimages file is:
ascii code:starting X position:starting Y position:width:height

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Attachments

Login to view attachments
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 3rd Sep 2013 23:46
@MarcoBruti
as AL said, Text Input with your Favorite Font,
Fill with color gradient/pattern, make shadow outline.
enable grid (+magnetic raster) & copy the coords in subimages.txt
if you want made a new font, you can use a ascii table
as background layer and then paint the char polygons.
Drago
10
Years of Service
User Offline
Joined: 20th Aug 2013
Location:
Posted: 4th Sep 2013 03:05
Thanks to all for your suggestions.

I will try waht AL says. I already founded tis solution, but I did not try yet (watching video tutorials).

I keep you informed about my progress.

Thanks!

----------------------------------------------
www.xuti.net

Login to post a reply

Server time is: 2024-05-03 08:06:09
Your offset time is: 2024-05-03 08:06:09