Text object problem

Discussion and feedback on Construct 2

Post » Fri May 08, 2015 7:32 pm

Hi,

I'm close to finishing a browser based game, when I realize that when loading save games, a problem emerges with some of the text objects.

I use my own webfonts (as described in Przemek32767 tutorial: https://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts).

The problem is that in some text objects the right part of the text gets cut of. It seems to happen when resizing the browser. The browser seems to load the webfonts, when I resize the browser window, after loading the save game. The text seems to be reformatted wrongly when this happens.

Screens displaying the problem:
https://docs.google.com/drawings/d/1AUA ... =960&h=720

Any ideas, or workarounds? (not being sprite fonts). Do you think this is a browser problem or C2 problem?

Cheers,
thegrind
B
26
S
9
G
2
Posts: 78
Reputation: 2,524

Post » Fri May 08, 2015 9:55 pm

All browsers seem to render fonts differently. The only solution to achieve the same effect on all browsers is the solution you don't want, I'm afraid.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,205
Reputation: 43,832

Post » Sun May 10, 2015 5:09 am

@thegrind,
"Do you think this is a browser problem or C2 problem?"
Well, yeah, but more specifically a browser developer problem. As colludium said you will get different result on different browsers. Browser developers never have and never will use/conform to standards that work towards uniformaty of the web.

The only solution unfortunately is spritefont.
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
34
S
12
G
7
Posts: 358
Reputation: 7,148


Return to Construct 2 General

Who is online

Users browsing this forum: BackendFreak, R0J0hound, Rastacity and 2 guests