From categories:
Waste of time (guest) 30 Aug 2017 21:10
in discussion Hidden / Per page discussions » Embedding Fonts in Haxe OpenFL

Doesn't work

by Waste of time (guest), 30 Aug 2017 21:10

Hello Michael! I tried a number of things to see why it wasn't loading on Safari or IE, but I haven't been able to pinpoint exactly what's up yet. There are likely better ways to do font embedding for HTML5 targets (likely using the CSS font-face feature), though as of yet I am unsure how to fully capitalize on this. Like you, I'm also getting accustomed to the OpenFL environment!


Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me

by Timothy FosterTimothy Foster, 16 Sep 2015 13:07
Michael (guest) 09 Sep 2015 07:48
in discussion Hidden / Per page discussions » Embedding Fonts in Haxe OpenFL

Hi,

Thanks for the great post!

I'll moving from Flash AS3 programming over to OpenFL and this was a great help, however I ran into a problem when I tried to embedding the Arial.ttf font in HTML5/js … it works great on Firefox and Google Chrome, unfortunately it did not work on Safari (Mac or iPad) or Internet Explorer. It fails to finish loading on the last two.

Project.xml line:
<assets path="assets/fonts" rename="fonts" if="html5" />
Appears to be the problem. Rem it and works fine, not Arial font just the default of course.
read … as newbyte dot com as I am not allowed to post links on this site.

Working with line remed
…./js/membrane/

Line active
…/js/membranef/

Any help would be greatly appreciated.

Please keep up the excellent work.

Cheers Michael

by Michael (guest), 09 Sep 2015 07:48