However when I removed the two mp3 assets listed in the project.xml, the font files were created in the export folder. And I could see html5 output showing up the right fonts.
So, the strange part is, how come using the audio assets is preventing the font files to be created in export folder. And removing them allows the font files to be created. You can test by downloading the project, I have attached.
I also tested this using Assets.list( ) , and the array listed the fonts only when I removed the mp3 assets.
The path should be the path to the files, and rename is an alias for the path to use in your code. Since you’re using the id for sounds you don’t need to use an alias, just specify the id.
But my audio files are not in assets/audio folder. If my paths are wrong, I get a run time error. However, the fact is that I am able to use the sound files without problem. Only thing is that my fonts only work when I remove the audios. This is strange behavior.
The sounds are in assets folder then? Seems strange the way you have it. I would make a sub folder for them, You’re making the alias like it’s a sub folder. Just an organizational preference.
This font node is probably the cause of the glitch.
And if for some reason it still does not work. Then next thing is to check the font name in the index.html page. All the fonts you use are listed there along with the name. As some times ago, I figured out that even after providing the font name it was not working. As Open FL for some reason made a small changes to the original font name. Not sure why did that happen.
And if the fonts are not listed, then the chances are that font embedding did not occur. Or may be you are using a template. ( using a template tag in project.xml ) . That has caused confusion for me many a times.