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 / [SOLVED] Custom Font creation - AGK user under Ubuntu.

Author
Message
jsheedy
6
Years of Service
User Offline
Joined: 29th Aug 2018
Location:
Posted: 20th Sep 2019 18:20 Edited at: 20th Sep 2019 19:08
I was just wondering if there were some Custom Font Creator Utils that were not windows specific that people were aware of. I could will do some google searching on a GIMP plugin/script as well, but if it was already available somewhere, I was just looking for some direction.

When searching the Forums, I did see the following. It seems there has been some time since they have been developed.

https://forum.thegamecreators.com/thread/189225#msg2257207

I cannot find the link, but I saw that =Prof= had created one as well.

In a book by Daniel Foreman, it almost appeared that appgamekit has a built in tool, but I do not see that as an option, attached screenshot


What I would like to do, it take a font, add some things such as depth, gradients, .., and they have then export to have the subimages text file created.

Thanks in advance
Josh

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 21st Sep 2019 14:01
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 21st Sep 2019 16:58 Edited at: 21st Sep 2019 16:59
Hi, I wrote a script for Photoshop.
 
https://www.instagram.com/qugurun/

Attachments

Login to view attachments
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 22nd Sep 2019 08:45 Edited at: 22nd Sep 2019 09:54
This post has been marked by the post author as the answer.
As promised, here is my split BM font function.
Things to note in order for this to work:
There must be a blank space at the beginning of the image file which will be used for a space character. The width of the space will be determined as an average of all character widths
Each row of characters must be in ASCII order
The extracted characters are grabbed as fixed height but won't show as fixed height if you use transparency above and below.
There must be NO transparent columns inside any character, otherwise they will be determined as two separate characters. This is most noticeable in a double quote ". If you load my font sheet into an image editor and zoom in you will see that I have put two pixels between each quote and set their transparency to 10% so that they are not noticeable.

Test Program to show how to use it:


The include file that you can download below or copy/paste here:


The included text file is what is required to describe the layout of the font file and looks like this:

The Font file used:

Output:


I have also included a PSD file. You can change the font and style en masse and create a whole new bitmap font very easily.

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 22nd Sep 2019 16:08
Very handy Scraggle
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
jsheedy
6
Years of Service
User Offline
Joined: 29th Aug 2018
Location:
Posted: 24th Sep 2019 04:14
Thanks a lot!
Josh

Login to post a reply

Server time is: 2024-11-19 03:08:14
Your offset time is: 2024-11-19 03:08:14