Sprite font center alignment - letters jumbled

Bugs will be moved here once resolved.

Post » Thu Jan 30, 2014 4:26 am

Link to .capx file (required! If link is blocked remove the http and www parts): dl.dropboxusercontent.com/u/112571595/spritefontstuffup.capx

Steps to reproduce:
1. Set point scaling and pixel rounding on
2. Make sprite font
3. Set Horizontal and Vertical alignment to center
4. Type a large amount of text

Note: occurs with default sprite font but not always as obvious as other fonts. May occur when alignment set to the right as well. I set the fullscreen in browser option to off to make it clearer but still occurs in other modes.


Observed result:
Some, but not all, letters become warped/have random pixels removed or misplaced.

Expected result:
Text appearing as drawn/configured.

Browsers affected:
Chrome: yes

Operating system & service pack:
Windows 7 Service Pack 1

Construct 2 version: 158-2
B
11
S
1
Posts: 26
Reputation: 1,104

Post » Fri Jan 31, 2014 1:19 pm

Looks like a rounding error that only happens when the object width and height are odd. Make the object size even and it goes away. Hopefully that's a decent workaround until it's fixed.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,625

Post » Sat Feb 01, 2014 3:34 am

Thanks! That does work, but another caveat is each individual character width/height also has to be even - which is why it was extra glitchy when I used a non-default font :)
B
11
S
1
Posts: 26
Reputation: 1,104

Post » Mon Feb 03, 2014 4:16 pm

OK, hopefully should be fixed in the next build.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,625


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests