How do I eliminate the bonus lines in SpriteFont?

Get help using Construct 2

Post » Wed Aug 05, 2015 8:07 pm

This requires an image for explanation.
Image

The top line is using the: SpriteFont+ plugin
The bottom line uses the raw Construct SpriteFont.

Both use specific spacings for each character.

The scales on the above fonts are:
0.56
0.51

The lines are faint vertical lines roughly 1-2px in width that seem to randomly (depending on scale) scatter themselves within the SpriteFont. If I scale to 1, they go away, but I cannot afford to have everything as scale 1.

I suppose we could go back and make the original spritesheet image smaller (allowing us to avoid scales < 1), but the SpriteFonts definitely do not work happily for scales smaller than 1.

The original sprite font image (used for both) is here: http://s3.postimg.org/4p7i0qdap/Sprite_ ... _0_4_1.png

These rogue lines are my primary reason for being hesitant about using the SpriteFont despite the significant performance losses that we are going to eat using thousands of Text objects.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Aug 05, 2015 8:35 pm

https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Aug 05, 2015 8:48 pm

Can you make the spritefront the size you want it without having to scale it after the fact?
B
87
S
44
G
16
Posts: 1,009
Reputation: 17,946

Post » Wed Aug 05, 2015 8:57 pm

Yea, we may have to do that. It is just annoying, as we plan on programmatically generating and sizing thousands of these things, and I would die if I have to go back and redo all of this due to rogue lines popping up everywhere.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Aug 05, 2015 10:28 pm

I'd say you haven't given your letters enough space on the left, so scaling is picking up bleed from the next letter. Ex: A is picking up the left most pixels of B. o is picking up p. Also some of your other fonts have artifacts right in the source: SpriteFont -> g, p, q.

Have a look at: sprite-font-generator-v2_t86546?&hilit=giveyourfontsmono
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067

Post » Thu Aug 06, 2015 3:27 pm

Yea, I tried fiddling with the spaces, but it doesn't help, or rather, I should say it helps temporarily. When I go to resizing it to another scale, the lines return.

I will definitely fiddle with this though, thanks @blackhornet.

After fiddling with your spriteFont generator, I noticed the output file names are exactly what she did, so apparently our artist used your generator to output the fonts used in my example above.

I may end up just generating a whole bunch of them for various font sizes that we need and try to avoid the scaling part altogether.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests