- Forums
- »
- General Discussion
- »
- Embed fonts not working for HTML5 target
|
Viewing 1 to 7 (7 Total) Embed fonts not working for HTML5 target |
|
|---|---|
mikeTotal Posts: 7
Joined: January 25, 2012
|
Hi!
Tags:
Attachments:
TextFieldsNME.zip
Posted on March 20, 2012 at 4:00 AM
|
grumpytoadTotal Posts: 63
Joined: November 21, 2011
|
Re: Embed fonts not working for HTML5 targetjust looking at the debugger and calling haxe.Resouce.listNames(), I cannot see that the font is embedded into the js output file at all, so it must be a problem with calling hxswfml or the nmml file.
Posted on March 20, 2012 at 3:40 PM
|
mikeTotal Posts: 7
Joined: January 25, 2012
|
Re: Embed fonts not working for HTML5 targetThis is working for flash/mac... target but not html5 var font = Assets.getFont ("Aubrey.ttf"); Make it simple, could you send me a working example/ nmml configuration ? Thanks!
Posted on March 21, 2012 at 2:24 AM
|
mikeTotal Posts: 7
Joined: January 25, 2012
|
Re: Embed fonts not working for HTML5 targetReally, nobody ?
Posted on March 22, 2012 at 1:30 AM
|
grumpytoadTotal Posts: 63
Joined: November 21, 2011
|
Re: Embed fonts not working for HTML5 targetThis seems to be a problem with NME build tool, which does not add the asset hash to anything in jeash, so jeash doesn't know how to bootstrap the font. Adding this line somewhere in your code will help:
Posted on March 22, 2012 at 4:50 AM
|
grumpytoadTotal Posts: 63
Joined: November 21, 2011
|
Re: Embed fonts not working for HTML5 targetThe link for that is
Posted on March 22, 2012 at 6:53 AM
|
mikeTotal Posts: 7
Joined: January 25, 2012
|
Re: Embed fonts not working for HTML5 targetThanks, I'll give it a try asap.
Posted on March 23, 2012 at 3:34 AM
|
