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 / how to use my own font?

Author
Message
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 10th Oct 2011 08:50
Now I am in china.Chinese is different from English, it contains a large amount of characters.I want to use my own font,how to solve it ?

I watched some games in IPad, they all used the default text font. but I think it's not beautiful enough.

How can give me a advice?

give my best
Hubdule
21
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 10th Oct 2011 09:37
With AppGameKit it's not possible (at the moment) to use other then the first ASCII characters (32 to 127). If you want different fonts, then just use this: http://forum.thegamecreators.com/?m=forum_view&t=189225&b=41 with royalty free fonts (not all fonts are allowed to be used without paying for them) or simply buy the new fonts from TGC.

Then in your program load the font image as new default one:



Then you can use CreateText etc. which use the new font.

halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 10th Oct 2011 09:49
Hubdule ,Thank you all the same.

I need to use Chinese characters,not English words.

The Chinese characters is very complex. and usually the font file size is more than 2MB.

give my best
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th Oct 2011 13:05
halley, most likely for the time being you will need to create your own spritesheets containing the images for your font. Unfortunately you will also have to work out some method of using it also but the sprite commands are relatively easy to manipulate.

halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 10th Oct 2011 15:01
Thank you!

give my best

Login to post a reply

Server time is: 2024-04-25 18:16:30
Your offset time is: 2024-04-25 18:16:30