SamHaXe Issues

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SamHaXe Issues

Lee Sylvester

Hey guys,

 

I’m trying to create some font resource files using SamHaXe, but I’m running into issues.  When using the following XML

 

<shx:resources version="9" compress="false"

   xmlns:shx="http://mindless-labs.com/samhaxe"

   xmlns:img="http://mindless-labs.com/samhaxe/modules/Image"

   xmlns:font="http://mindless-labs.com/samhaxe/modules/Font">

 

   <shx:frame>

      <font:ttf import="Arial.ttf" name="Arial" class="ArialCls">

         <font:characters>

            <font:include range="a..z"/>

            <font:include range="A..Z"/>

            <font:include range="0..9"/>

            <font:include characters=" ,.:!?-(){}ä%^&*_+=@'#~/|\`̢"/>

         </font:characters>

      </font:ttf>

   </shx:frame>

</shx:resources>

 

I get the error

 

D:\Project\haXe\test\assets\fonts>SamHaXe Arial.xml Arial.swf

Called from @Main::$statics line 1

Called from SamHaXe::main line 698

Called from SamHaXe::$init line 112

Called from SamHaXe::new line 380

Called from SamHaXe::runImport line 466

Called from Font::import_font_1_0 line 219

Uncaught exception - Could not open file 'Arial.ttf', reason:

   std@utf8_iter

 

Unfortunately, that error tells me nothing as to why this isn’t working.  Has anyone else had this issue?

 

Thanks,

Lee

 

 


--
haXe - an open source web programming language
http://haxe.org