Sprite Font distorted in layout

Discussion and feedback on Construct 2

Post » Thu Apr 07, 2016 6:12 pm

When adding a sprite font on the layout, it is distorted. But not when I preview it in the browser :shock:

Thanks in advance for any suggestions on how to solve this.

Construct2 R226.

Regards,

Justin
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Thu Apr 07, 2016 7:26 pm

This is a video driver issue. Try updating your driver. Otherwise you are looking at a new video card to avoid this. This has been documented many times.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990

Post » Sat Apr 09, 2016 7:07 pm

I thought it could have been a driver issue, but I saved out a sprite font png and it's working just fine. I don't know if it has anything to do with size. I loaded the purchased sprite font in PS and saved it back out, but still it's distorted.
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sat Apr 09, 2016 8:20 pm

If you provide a simple .capx with the issue, we can test it for you as well.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
85
Posts: 5,412
Reputation: 59,008

Post » Sat Apr 09, 2016 8:52 pm

In the capx the first one is distorted (purchased) and the second one made with GiveYourFontsMono

https://www.dropbox.com/s/11t71igo7lqp4 ... .capx?dl=0
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sun Apr 10, 2016 7:47 am

In your project's properties, set the "Sampling" to "Point". If you are using any kind of pixel art images (even a small sprite font like this one) you have to use point samplig to get that pixellated look.

"Sampling
Choose between linear (smooth) and point (pixellated) sampling when resizing images. Linear is recommended for modern games with hi-res graphics, and point is better suited to retro games with blocky pixel art."
Source: https://www.scirra.com/manual/66/projects
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

Post » Sun Apr 10, 2016 8:07 am

Thanks glerikud. But no luck there. Only on the layout is it distorted. When I preview it, it looks just fine.
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sun Apr 10, 2016 8:19 am

The layout won't render your project like previewing does. So if you use images that small for objects, even with point sampling, the editor will display them distorted. I don't know any way of fixing that, but maybe someone can help you there :)
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

Post » Sun Apr 10, 2016 8:22 am

Thanks glerikud. I'm going to scale it up in PS and see if that helps.
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sun Apr 10, 2016 8:33 am

See this thread: spritefont-and-sprites-distortion-in-editor_t154095

If that matches your problem, (see my video in that thread)
drag a sprite font off the left side of the layout, and everything will snap into place for the duration of that session.
Then just undo to put the one you dragged back where it was.
B
233
S
62
G
33
Posts: 902
Reputation: 40,398

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests