Font embedding for html5 finally worked for me, after reading a lot of threads :}
I’m sharing a workaround I found in the case your font work on desktop but fails on iOS : It seems that openfl(?) produces a buggy css. Safari OSX doesn’t mind it. But your loader will get stuck on iOS.
The faulty CSS looks like :
html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; } #openfl-content { background: #000000; width: 100%; height: 100%; } @font-face { font-family: 'null'; src: url('fonts/RopaSans-Regular.eot'); src: url('fonts/RopaSans-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/RopaSans-Regular.svg#my-font-family') format('svg'), url('fonts/RopaSans-Regular.woff') format('woff'), url('fonts/RopaSans-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'null'; src: url('fonts/RopaSans-Regular.eot'); src: url('fonts/RopaSans-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/RopaSans-Regular.svg#my-font-family') format('svg'), url('fonts/RopaSans-Regular.woff') format('woff'), url('fonts/RopaSans-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Ropa Sans'; src: url('fonts/RopaSans-Regular.eot'); src: url('fonts/RopaSans-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/RopaSans-Regular.svg#my-font-family') format('svg'), url('fonts/RopaSans-Regular.woff') format('woff'), url('fonts/RopaSans-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Ropa Sans'; src: url('fonts/RopaSans-Regular.eot'); src: url('fonts/RopaSans-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/RopaSans-Regular.svg#my-font-family') format('svg'), url('fonts/RopaSans-Regular.woff') format('woff'), url('fonts/RopaSans-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }( that’s a lot of font-faces, for just a single font to embed!.. )
I just have to remove all the nodes except one with a correct font-family: ‘Ropa Sans’
The bummer is i have to do use an index.html template now to automate the workaround…