- Forums
- »
- Programming with Haxe
- »
- missing fonts on HTML5?
|
Viewing 1 to 15 (15 Total) missing fonts on HTML5? |
|
|---|---|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
I was trying to make a site converted to HTML5 from Flash. While everything went well, the fonts, which are using TextFormat, do not show up on HTML5?! The main site is in Flash but coded in haXe, so transition was not a problem but then is there are way to convert the dynamic texts with TextFormats to HTML5 or its not possible yet !
Tags:
Posted on December 20, 2011 at 12:26 PM
|
singmajestyTotal Posts: 2146
Joined: August 25, 2011
|
Re: missing fonts on HTML5?Fonts are supported on HTML5.
Posted on December 20, 2011 at 12:44 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?thanks @singmajesty
Posted on December 20, 2011 at 12:47 PM
|
singmajestyTotal Posts: 2146
Joined: August 25, 2011
|
Re: missing fonts on HTML5?If you're using nme.Assets.getFont, it should work on all targets.
Posted on December 20, 2011 at 1:34 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?thanks.
Posted on December 20, 2011 at 1:57 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?it compiles fine for iPhone target, but HTML5 target throws the error above!
Posted on December 20, 2011 at 2:13 PM
|
singmajestyTotal Posts: 2146
Joined: August 25, 2011
|
Re: missing fonts on HTML5?Hmm, that's strange. I just tried it again on my end, and worked correctly.
Posted on December 20, 2011 at 2:35 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?I am using "Herculanum.ttf" and can not see any .hash neither in source folder nor in export folder.
Posted on December 20, 2011 at 2:45 PM
|
singmajestyTotal Posts: 2146
Joined: August 25, 2011
|
Re: missing fonts on HTML5?Would you mind seeing what happens if you run hxswfml manually?
Posted on December 20, 2011 at 3:14 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?hey singmajesty,
Posted on December 21, 2011 at 1:13 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?opps sorry for my hurry.
Posted on December 21, 2011 at 1:18 PM
|
singmajestyTotal Posts: 2146
Joined: August 25, 2011
|
Re: missing fonts on HTML5?If you are running from the directory of your project, you will need to specify an absolute path to hxswfml.n.
Posted on December 21, 2011 at 1:22 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?I copied to the fonts folder and run the command. Now it says
Posted on December 21, 2011 at 1:31 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?ok, now updated my NMe lib to latest version. That also did not fix this issue. I am sure what that error is saying even! Does that mean I do not have the font needed! nyway going to try that with some other font.
Posted on December 22, 2011 at 1:51 PM
|
saumyaTotal Posts: 56
Joined: November 19, 2011
|
Re: missing fonts on HTML5?ok. go it working locally in the folder.
Posted on December 22, 2011 at 2:16 PM
|
