BitmapFont icon indicating copy to clipboard operation
BitmapFont copied to clipboard

the bitmapfont work bad in preloader of html5

Open zhulu-mike opened this issue 11 years ago • 3 comments

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?

zhulu-mike avatar Nov 13 '14 09:11 zhulu-mike

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

Beeblerox avatar Nov 13 '14 13:11 Beeblerox

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 avatar Nov 19 '14 06:11 zhulu-mike

image

zhulu-mike avatar Nov 19 '14 06:11 zhulu-mike