Construct 2 SpriteFont - Always glitchy for me?

Discussion and feedback on Construct 2

Post » Sat Oct 26, 2013 1:23 pm

Hi,

I keep having the following issue:


As you can see there are strange artifacts around the letters.

Anything that the devs can give input on?
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Sat Oct 26, 2013 1:46 pm

try this tool:
http://www.scirra.com/forum/sprite-font-generator_topic72160.html
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Sat Oct 26, 2013 1:47 pm

Can't see the picture... I can't get on with the sprite font plugin either, but probs for different reasons...

I see it now... the sprite sheet you're using is wrong. The tool previously posted will help.

I don't like it, because I have to go in manually and set up all the letter spacing each and every time. Very frustrating. Only tool I've needed to do that for.AnD4D2013-10-26 13:51:14
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Post » Sat Oct 26, 2013 1:54 pm

In tutorial section, posted yesterday I think, nice video on making spritefonts.

This solves the issue. Problem is most generated spritefonts as AnD4D says, require manually setting up letter spacing because it is always off a pixel here or there.

And when I saw image (gone now) it looks like that is your problem (you catching letter next to it. above it. or below it.

See "r" and "i" big space between - you need to manually set up letter spacing. "I" takes up less space which means more white space etc etc
DUTOIT2013-10-26 13:57:38
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Sat Oct 26, 2013 2:33 pm

[QUOTE=AnD4D]I see it now... the sprite sheet you're using is wrong. The tool previously posted will help.[/QUOTE]
Could you explain what is wrong?

[QUOTE=DUTOIT]And when I saw image (gone now) it looks like that is your problem (you catching letter next to it. above it. or below it.[/QUOTE]
It's not catching the surrounding letters, because the bitmap image I'm using is in 1:1 scale. In other words, it's a visual glitch.

[QUOTE=DUTOIT]See "r" and "i" big space between - you need to manually set up letter spacing. "I" takes up less space which means more white space etc etc[/QUOTE]
What do you mean?
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Sat Oct 26, 2013 3:22 pm

When you add it in to Construct, click on the SpriteFont, and look at the properties. Tweak these slightly (character width, etc).

Look at the h in your image above. It is picking up a line of pixels beside it. I assume it's a capital H, or maybe even a border.

Do you mind if we see a capx or a sprite sheet?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Post » Sat Oct 26, 2013 3:28 pm

[QUOTE=AnD4D] When you add it in to Construct, click on the SpriteFont, and look at the properties. Tweak these slightly (character width, etc).

Look at the h in your image above. It is picking up a line of pixels beside it. I assume it's a capital H, or maybe even a border.[/QUOTE]
I already explained that this is wrong.

It's not picking up pixels from other characters because the spritefont is upscaled from an original 1:1 scale bitmap image.

This is a glitch, not a SpriteFont configuration issue.

[QUOTE=AnD4D]Do you mind if we see a capx or a sprite sheet?[/QUOTE]
Sure, here's a JPG copy of the original image:



The sprite sheet image's resolution is 261x64px with each character having a 9x16px resolution, and the black background color is replaced with alpha transparency in Construct 2bolosaur2013-10-26 15:31:31
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Sat Oct 26, 2013 3:40 pm

Could it be that it's not power-of-two? I get that warning when importing sprite fonts.Tobye2013-10-26 15:40:22
B
28
S
8
G
5
Posts: 429
Reputation: 7,007

Post » Sat Oct 26, 2013 4:11 pm

I thought that the power-of-two-principle was more about performance enhancement when it comes to Construct 2, but it's a good guess. Maybe Ashley can confirm?
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Sat Oct 26, 2013 7:55 pm

It looks like pixels from adjacent characters leaking through due to floating point scaling. Try using point sampling, pixel rounding and letterbox integer scale.

The power-of-two sizing isn't important for spritefonts.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 26 guests