Sprite Fonts displays text incorrectly. [SOLVED]

Bugs will be moved here once resolved.

Post » Fri Sep 30, 2016 2:39 pm

Problem Description
The sprite font won't display text properly.
Won't display 0s at. Trying to write with text is a jumbled mess. Writing 1234567890 leaves you with 3456789.



Attach a Capx
https://drive.google.com/open?id=0ByjXO ... UdnaTFFV1E


Description of Capx
Capx contains my spritefont and some examples.

Steps to Reproduce Bug
  • Try writing in another text block.

Observed Result
See description. Text won't correspond correctly.

Expected Result
Text won't correspond to text written in "text".

Affected Browsers
  • This is an engine issue, affects all browsers.

Operating System and Service Pack
Don't know.

Construct 2 Version ID
233 64bit.
Last edited by Theihe on Sat Oct 01, 2016 10:54 am, edited 1 time in total.
B
13
S
3
G
1
Posts: 41
Reputation: 1,468

Post » Fri Sep 30, 2016 4:13 pm

It's your spacing.
Check the A, then look at the L
The A has 2 transparent 1 pixel columns after it.
L doesn't.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Fri Sep 30, 2016 5:14 pm

newt wrote:It's your spacing.
Check the A, then look at the L
The A has 2 transparent 1 pixel columns after it.
L doesn't.

Well even so that doesnt explain why the 0 doesnt show at all?
The only thing the spacing should do is make some letters partly cut?
B
13
S
3
G
1
Posts: 41
Reputation: 1,468

Post » Fri Sep 30, 2016 5:26 pm

2 pixels, 2 rows, yes.
If the zero doesn't show try changing wrapping from word to character.
Might try asking about stuff like this in how do I, or general, rather than first making a bug report.

I say that as a bug of that sort would be pretty apparent.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Fri Sep 30, 2016 11:47 pm

I've already tried changing the wrapping
B
13
S
3
G
1
Posts: 41
Reputation: 1,468

Post » Sat Oct 01, 2016 1:21 am

Perhaps I didn't make it clear that the source texture needs two extra pixels added to its width in order to work.
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Sat Oct 01, 2016 1:54 am

So if I add two pixels to the width of the sprite it works?
Then how come just typing out all the letters in the correct order works fine?
B
13
S
3
G
1
Posts: 41
Reputation: 1,468

Post » Sat Oct 01, 2016 2:38 am

You mean works fine except the last one?
Image ImageImage
B
170
S
50
G
178
Posts: 8,378
Reputation: 112,925

Post » Sat Oct 01, 2016 8:45 am

I mean just using the sprite font to write all letters and numbers in the right order works fine. Writing 1 and 2 works fine but not if you just write 1234567890.

Why does writing it all out in the right order work, except for 0, if it needs 2 more pixels in width?
Doesnt make sense mate
B
13
S
3
G
1
Posts: 41
Reputation: 1,468

Post » Sat Oct 01, 2016 10:54 am

[EDIT]
I see what you mean with the transparent squares after the L, it totally flew over my head.
Fixed my issue, just needed to resize.

Mod can feel free to move this to solved.
B
13
S
3
G
1
Posts: 41
Reputation: 1,468

Next

Return to Closed bugs

Who is online

Users browsing this forum: Tony80 and 0 guests