Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / html5 font problems???

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 20th Sep 2018 13:28 Edited at: 20th Sep 2018 14:07
My truetype and otf fonts gets screwed up when compiled for html5 files???

There size is screwed?


Anyone know wath the reason could be???


Wath i can see so is all text the same as the first text createds size???

Ignoring any size settings after that??

this is on iexplorer on windows 10

Attachments

Login to view attachments
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 20th Sep 2018 15:32 Edited at: 20th Sep 2018 15:35
The default font works ?
Is the default font a bitmap one??

Its print and textcommands that gets screwed when changing fonts with a custom one on html5...


Its important to get it solved as i want my custom font to work ingame and the built in editor




Its for a moddable html 5 game for itch io...
GarBenjamin
AGK Developer
7
Years of Service
User Offline
Joined: 30th Nov 2016
Location: USA
Posted: 20th Sep 2018 21:53 Edited at: 21st Sep 2018 03:59
I ran into this kind of thing on an test web build as well. And you are right from what I saw it seemed like text objects were somehow locked to whatever the virtual resolution was set to at the time those objects were actually created. That might be how I got around it by setting virtual res before creating them not sure now and can't check atm but maybe try that.

UPDATE: From what I can see the fix I came up with was to use SetTextSize right after I use SetTextString when updating the money the player has. I'd guess you are using a render image because that is what I am using and ran into this.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 21st Sep 2018 21:31
it dont work gar
Must be something in there text updates no one noticed until now..
Writing a ttf otf to bitmap converter to see if it fixes it???
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 22nd Sep 2018 16:03
Iam so freaking tired now of the html5 errors that i trash it completely..
Cant put so much energi in it without knowing if its a bug or not..
So tired….
GarBenjamin
AGK Developer
7
Years of Service
User Offline
Joined: 30th Nov 2016
Location: USA
Posted: 22nd Sep 2018 18:16
Sorry to hear that Cliff. It's always battling these kinds of things that is the real frustrating part of game dev. Sometimes you can find a workaround and sometimes just out of your control. I used to run into that with Unity often. Damn frustrating.

If you can post a tiny example project duplicating the issue I will take a stab at it and maybe others will too.

Login to post a reply

Server time is: 2024-03-29 08:48:25
Your offset time is: 2024-03-29 08:48:25