Sprite Font Generator - v3

Discussion of tools and resources for game developers

Post » Sun Jul 21, 2013 3:03 pm

This is a Sprite Font generator for the official C2/3 Sprite Font plugin.
Image
Requires .NET 4.0 be installed. Available through Windows Update. or .NET 4.0


CAPX sample of how to use the exported JSON data to configure the character widths via Array.Load JSON action (Construct 2 only)
GYFM_ImportSample_v2.capx


2017-04-04
V3.0 - Now supports Construct3's new 'Spacing data' format! I also made a few changes to the 'Parameters'. After several iterations, I ended up with four fields for altering widths and shifts, but if you think about it, what it really is doing is adding extra transparent border pixels around the letter. I've reworded the fields and default all to 1, which provides the safest values for avoiding image artifacts, similar to how C2/3 adds a border when it generates it's internal spritesheets. If you know you can optimize them out, you can always set them back to 0.
http://www.blackhornettechnologies.com/Construct2Stuff/GYFM/GiveYourFontsMono_v3_0.zip

2016-01-13
V2.7 - Fixed issue with very long Letterset text sizing off of the screen, making the Refresh, etc. buttons disappear.
http://www.blackhornettechnologies.com/Construct2Stuff/GYFM/GiveYourFontsMono_v2_7.zip

2015-09-28
V2.6 - Added Vertical Shift
http://www.blackhornettechnologies.com/Construct2Stuff/GYFM/GiveYourFontsMono_v2_6.zip

2014-12-05
V2.5 - Force TXT file to use UTF8 encoding. Characters can be altered if left at Default setting.
GiveYourFontsMono_v2_5.zip


2014-09-26
V2.4 - Fix Sample Text being defaulted when Font dialog entered. Remove duplicate characters and space-character from Letterset.

2014-07-19
V2.3 - Fix Letterset being defaulted when Font dialog entered. Reverted back to .NET 4.0, so it still runs on XP.


Requires .NET 4.5 be installed. Available through Windows Update. or .NET 4.5

2013-12-11
V2.2 - Fixed crash when reading a bad font.
GiveYourFontsMono(spacing) v2.2

2013-12-01
V2.1 - Font dialog cleaned up and fixed bug in Shadow - wasn't including outlines in shadow generation. Fixed crash when Sample text has none of the letters in the Letterset.
GiveYourFontsMono(spacing) v2.1

2013-11-27
V2.0 - Initial offering with outline-fonts. The GUI is still rough, but the basic functionality works. Not compatible with v1 (XML) files.
GiveYourFontsMono(spacing) v2.0
================================================================================
Requires .NET 4.0 be installed. Available through Windows Update. or .NET 4

2013-11-19
V1.12 - Fixed anti-aliasing bug (was patch 1.11.5). Fixed instructions getting cut off.
GiveYourFontsMono_v1_12.zip


2013-08-15
V1.11 - Sample text area height was too short. Added % character to default character set.
GiveYourFontsMono(spacing) v1.11

2013-08-15
V1.10 - Save & Load support! Improved power-of-2 calculation. More details in the TXT file. Graphic fixes for both bitmap images, including scrolling. Sample updated to remove Browser reference to make copy/paste easier.
GiveYourFontsMono(spacing) v1.10

2013-08-06
V1.9 - fixed 'Reset to defaults' button positioning problem. Added an additional anti-aliasing option, better than the original. Altered minimum sizing to work with 'Ease of access' on Vista.
GiveYourFontsMono(spacing) v1.9

2013-08-03
V1.8 - GUI persistence and JSON export.
GiveYourFontsMono(spacing) v1.8

JSON sample: {""c2array"":true,""size"":[2,21,1],""data"":[[[7],[8],[9],[11],[12],[13],[14],[15],[17],[18],[19],[20],[21],[22],[23],[24],[25],[26],[27],[33],[35]],[[""|""],[""Iil.,;:!'""],[""`""],[""j[]""],[""()""],[""rt-\\�""],[""f1\""/""],[""*""],[""J""],[""hknsu""],[""Labcdgpqvyz""],[""eox02356789?+=$�<>""],[""F4~�""],[""BET_#""],[""HNPSUZ&""],[""DKR""],[""CX""],[""AGVY""],[""MOQmw""],[""@""],[""W""]]]}

2013-08-02
V1.7 - More tweeks to width calculations. Added text display simulation. Horizontal shifting added back in. Fixed crash related to justification. Added boundary display option.
GiveYourFontsMono(spacing) v1.7

2013-08-02
V1.6 - Fixed anti-aliasing - broken in 1.3.
GiveYourFontsMono(spacing) v1.6

2013-08-01
V1.5 - 1.4 still shows as 1.3. No other change in this version but the number (1.5).
GiveYourFontsMono(spacing) v1.5

2013-07-31
V1.4 - Adjusted the spacing a bit. Scaling of the font was picking up some clutter from the next character.
GiveYourFontsMono(spacing) v1.4

2013-07-31
V1.3 - Added support for combining-characters, used in non-English languages, and math fonts.
GiveYourFontsMono(spacing) v1.3

2013-07-31
V1.2 - Now auto-calculates dimensions, optimizes for power-of-two, saves text file with the list of character width values that can be added to C2 via the "Set character width" action. Still need to do some cleanup as this was a big change from the manual mechanism. Also I'd like to find a better mechanism for getting the widths into C2.
GiveYourFontsMono(spacing) v1.2

2013-07-20
V1.1 - Added Left justification option, extra horizontal shifting, and defaults to C2s character set.
C2's SpriteFont plugin uses Left justification, not Center justification.
GiveYourFontsMono(spacing) v1.1
You do not have the required permissions to view the files attached to this post.
Last edited by blackhornet on Wed Apr 05, 2017 6:07 am, edited 10 times in total.
ImageImageImage
B
71
S
20
G
189
Posts: 3,531
Reputation: 107,836

Post » Mon Jul 22, 2013 5:49 am

Wow, you are fabulous! Thanks so much for making this better. :D
B
141
S
68
G
17
Posts: 1,769
Reputation: 20,124

Post » Tue Jul 23, 2013 12:28 pm

@blackhornet

Great tool, Thanks
B
47
S
16
G
9
Posts: 1,097
Reputation: 11,180

Post » Sat Jul 27, 2013 1:52 am

any screencaps?
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Sat Jul 27, 2013 2:23 am

What do you want to see - just the interface?
ImageImageImage
B
71
S
20
G
189
Posts: 3,531
Reputation: 107,836

Post » Sat Jul 27, 2013 2:06 pm

*nods
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Sat Jul 27, 2013 4:03 pm

Updated first post.
ImageImageImage
B
71
S
20
G
189
Posts: 3,531
Reputation: 107,836

Post » Sat Jul 27, 2013 7:25 pm

@blackhornet, these are really great additions to the generator, thank you.
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Sat Jul 27, 2013 9:07 pm

any plans to auto-calculate the spacing needed? (for non-monospaced fonts)
to just copy-paste that in the events :)
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Sun Jul 28, 2013 3:29 am

I sometimes use a combo of ShoeBox and sweat to do fonts. all help in this department is appreciated!
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Next

Return to Tools and Resources

Who is online

Users browsing this forum: No registered users and 1 guest