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 / the font is not right in iOS with AGK version 1076.

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 12th Jan 2013 09:18
int iFont = agk::LoadImage("font.png");
agk::SetTextDefaultFontImage(iFont);

I add this two line code.
The font is not right as expected in the game.

The Miracrea Games
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Jan 2013 18:10
Did you remember to add your font.png file to the Resources folder in your Xcode project?

How is the font not right?

Are you testing on an actual device or using a simulator?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 13th Jan 2013 14:12 Edited at: 13th Jan 2013 14:12
The text is not right in version 1076, so I changed to version 1088. The font is not right ,too. Can you give me a hand?

I write "123ABC", the text on screen is not as my expected.



The Miracrea Games

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 14th Jan 2013 01:57
One possible cause is if the font image is greater than 1024 pixels in either direction, this will throw off the subimages.txt file if the image is scaled down to a more manageable size.
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 14th Jan 2013 03:08 Edited at: 14th Jan 2013 03:08
Actually the font image is much less than 1024.



The Miracrea Games

Attachments

Login to view attachments
JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 14th Jan 2013 13:59
Looks like the subimages txt file is wrong.

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 14th Jan 2013 16:40
Halley, if the font image you posted is the file you are using, it is not right.

If your post isn't of the font image file, can you post the font image file? And the subimages text file that goes with it?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-05-03 21:42:05
Your offset time is: 2024-05-03 21:42:05