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

the bitmapfont work bad in preloader of html5 #20

Open
zhulu-mike opened this issue Nov 13, 2014 · 3 comments
Open

the bitmapfont work bad in preloader of html5 #20

zhulu-mike opened this issue Nov 13, 2014 · 3 comments

Comments

@zhulu-mike
Copy link

when i use bitmapfont in A Preloader and the target html5 of openfl project.the text didn't show anything.but when i use after the preloaded, it works fine. i check the console,no error trace.anybody know what's the matter?

@Beeblerox
Copy link
Owner

that's happening because assets for your font are loading at the time preloader is shown.
you need to "hardcode" image and description file in the code (it will increase the size on code). i can help you with it

@zhulu-mike
Copy link
Author

thank you, what can i do?
you think the reason is because assets for my font are loading at the time preloader is shown.
but i used the font after i load the font png and font config file complete in preloader.
the code like this:
image

image

.

@zhulu-mike
Copy link
Author

image

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

No branches or pull requests

2 participants