Hello , I'm having some troubles creating a swf with fonts embedded.
first I create a swf from swmill with the font and works perfect
(resource.swf)
then compile another swf from haxe with resources included inside, and thats
also fine.
but when i test my swf to see my fonts , doesn't exists.
if i decompile my swf doesnt show my font class , that should be inside, but
it shows my real font included as resource(glyphs).

here is the code :

*swfmill* >>
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie version="9">
    <frame>
        <library>
        <font id="Symbols" name="Symbols" import="/home/*****/arial.ttf"  />
        </library>
    </frame>
</movie>

*Haxe* >>

*Compile.hxml*
-swf /home/******/SharedFont20090130.swf
-cp /home/*******/
-swf-lib resources.swf
-swf-version 9
-main SharedFont


*SharedFont.hx*
class Symbols extends flash.text.Font {
     function new(){
         super();
         return;
     }
}
class SharedFont {
    static function main() {
       trace('hello world');
    }
}


Any Idea???? what am i doing wrong? .
i cant use that font in any textfield, it says that is fine ,... but the
glyphs are not shown. :(

Thanx!!
Juan.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to