SpriteFont Right Justify cuts off letter

Bugs will be moved here once resolved.

Post » Mon Jul 01, 2013 7:48 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/85412219/forumposts/fontrightjustifyerror.capx

Steps to reproduce:
1. Open the capx, note the word "right" has a T
2. Preview
3. Notice the T in Right gets cut off, no matter the space left

Observed result:
The T in "Right" gets cut off, no matter the space left.
Work around is to add an extra character to get cut off.

Expected result:
Not losing the last letter.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 7

Construct 2 version:
r236 64bit
    

Edit: if you add a character as a work around, it can't be a space, they are apparently trimmed.
Also it seems to only happen with over 9 characters.Paradox2013-07-01 19:58:21
B
230
S
62
G
33
Posts: 902
Reputation: 40,323

Post » Tue Jul 02, 2013 8:29 am

uh oh, just got an error trying to test in IE10 that may be related:
---------------------------
Message from webpage
---------------------------
Javascript error!
Object doesn't support property or method 'trimRight'
http://localhost:50000/Spritefont2_plugin.js, line 490 (col undefined)

This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!
---------------------------
OK   
---------------------------
My test capx above didn't give this error, so I will have to poke around some more, see what else could be causing it.
B
230
S
62
G
33
Posts: 902
Reputation: 40,323

Post » Tue Jul 02, 2013 8:28 pm

I turned off WebGL, and my loaded in Chrome, but on trying to go to the 1st level I got this java error:

Javascript error!

Uncaught TypeError: Cannot call method 'loadTexture' of nullhttp://localhost:50000/Particles_plugin.js, line 70 (col undefined)

This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!


--
Still don't know if it's just my game.. will keep exploring...
B
230
S
62
G
33
Posts: 902
Reputation: 40,323

Post » Tue Jul 02, 2013 11:33 pm

Your latest error:
Uncaught TypeError: Cannot call method 'loadTexture' of nullhttp://localhost:50000/Particles_plugin.js, line 70 (col undefined)

It mentions the particles plugin :P
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Wed Jul 03, 2013 6:08 am

I know, it doesn't crash in the version before I added the spritefont.
And only if in IE or with webGL switched off.

Edit, actually that may be it, i added a particle to the capx above, and turned off webgl, and it crashed.Paradox2013-07-03 06:11:50
B
230
S
62
G
33
Posts: 902
Reputation: 40,323

Post » Mon Jul 08, 2013 11:11 am

All issues in this thread should be fixed in the next build.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest