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 / FONTing in AGK!

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 15th Sep 2012 10:16
So my friend drew a nice font for me that I would like to use. It's in PNG format.

I have cookie cut all characters using photoshop slices so that i can easily export each letter as a separate png. My plan was to then use the Imagejoiner tool and rebuild a spritesheet!

the variable width of each font character is no problem.

the variable height IS a problem! some characters have some extra pixels graphic at the top, others some extra detail at the bottom.

i know that there are a few font tools that convert a ttf into agk bitmap font format, but is there a tool to load my a-z pngs, and align the heights easily?

or am i pretending too much and I have to do everything manually?
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 15th Sep 2012 11:26
Well, I believe you can use a single png and a subimage txt file.

The way I did my font was to make a grid background in PS and then draw each character inside each grid square. I plan to add a txt file at some point as some characters would be better of with a smaller width.


Demo 2 is out! Click the image for more.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 15th Sep 2012 17:41
obviously i will use a png file and a subimage txt file.

my question was, what are the best tools to use to come to that ending
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 15th Sep 2012 18:06
Ah, I see what you mean now


Demo 2 is out! Click the image for more.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 15th Sep 2012 23:38
i had to expand the height of all characters so that they are all equal.
splice them by hand, one by one in photoshop.
export to png.
use imagejoiner to build a spritesheet and create the text file.

too much work
Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 16th Sep 2012 10:08
I'm working on a solution for that very problem right now, and since I'm off work today, I should be able to post it tonight!

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 16th Sep 2012 13:53
Looking forward to your solution Rich.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Sep 2012 17:09
This sounds like exactly the reason I wrote
the "Atlas Image Data Generator" >Link<

Hope it helps

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 16th Sep 2012 17:46
yah, =PRoF=, I forgot about that, it's awesome.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 16th Sep 2012 20:07
Thanks =PRoF= looks like a useful tool, but not sure if it can solve my problem with adjusting the height of fonts.

most probably i'm only dreaming that such a tool exists and the quickest is to set all by hand as photoshop splices
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Sep 2012 21:35 Edited at: 16th Sep 2012 21:37
@bjadams:
Perhaps I missunderstood what it is you're trying to do?

The auto sprite detection of AIDG can auto detect the characters of the font on the original png file from your friend.

It then lets you choose whether they are individual sizes, or all automatically sized to the size of the largest letter.

You can tweak the results to adjust them where needed.

(Although You might need to manually rename them all? I'm sure the default is numbers)

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 16th Sep 2012 23:05
yes this tool is really good, however when it comes to fonts, i need some way to set the baseline where the bottom of the font will sit.

i don't think it's really possible for a tool to this automatically.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 17th Sep 2012 00:08
@bjadams:
Yeah, fair enough. I'll look into adding better font support for the next version.

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 17th Sep 2012 00:41
hmm, well my solution might not be what you need then. But check it out, maybe it can save you some time...

HOTspot designer

My program is really meant to work with a big image full of small areas, rather than individual images. But if you've something done in photoshop, or bitmap creator or AIDG, then HOTspot designer could help you tweak your values maybe.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 17th Sep 2012 17:59
will check it out thanks

Login to post a reply

Server time is: 2024-04-30 22:40:12
Your offset time is: 2024-04-30 22:40:12