Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text loses context (Android) #33

Closed
WingEraser opened this issue Oct 20, 2013 · 10 comments
Closed

Text loses context (Android) #33

WingEraser opened this issue Oct 20, 2013 · 10 comments
Labels

Comments

@WingEraser
Copy link
Member

Simply run a demo with text and hit the home button. Go back and the context is lost.

https://www.dropbox.com/s/esoamnanm2gbio0/device-2013-10-20-173023.png
https://www.dropbox.com/s/xay46wdds83wz57/device-2013-10-20-173208.png

@WingEraser
Copy link
Member Author

There we go: http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=11328
Not the best solution, but watch that topic maybe a better solution will appear.

Edit: libgdx/libgdx#870

@scientistnm
Copy link

This is not the same problem! There is described that he has a problem with dispose method.
We have problem that after onPause method, while application is still running and alive, only in background font context is lost.

@moly
Copy link
Contributor

moly commented Nov 2, 2013

Do you know if this is a new problem or if it's always existed?

@scientistnm
Copy link

I have created a game few weeks ago...And it all works file except that...and I can't publish it with bug...I have reported an issues...bud developers redirected me here...I guess it exists for a while...

It only happens with FreeTypeFont generated in runtime...
If you load BitmapFont from assets...it works fine...

@WingEraser
Copy link
Member Author

If you add the following code from BitmapFontLoader::getDependencies() into FreeTypeFontLoader::getDependencies() it works again. However the font size don't work.

@scientistnm
Copy link

@WingEraser Could you explain more how to fix that?
Anyone? Is there clean solution found for this? When do we can expect update from libgdx developers?

@WingEraser
Copy link
Member Author

There is a PR at libgdx: libgdx/libgdx#896
You can try his code or wait until someone merge it into libgdx master.

@scientistnm
Copy link

Tnx, I'll give it a try...hopefully there will be an update soon :)

@badlogic
Copy link

badlogic commented Nov 9, 2013

Should be fixed with libgdx/libgdx#896

@WingEraser
Copy link
Member Author

I updated the libgdx nightly. Confirmed to be working. @moly was too early with libgdx nightly. The nghtly build wasn't done yet on their side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants