[swfmill] Problem with importing fonts.

matsuhashi at quick.co.jp matsuhashi at quick.co.jp
Sun Aug 2 19:05:12 PDT 2009



Hello, Fabrice

>WARNING: FreeType does not like GenR102.ttf

All this message is saying is that the swfmill uses FreeType library, and
the FreeType failed to open the TTF file you specified. Remember, the
import attribute of <font> tag requires either the absolute path or a
relative path of the font file to the current directory. In the source.xml
you have specified as follows:
    import="GenR102.ttf"
This fragment implies that you have the GenR102.ttf file in the current
directory. Is it really the case?



MATSUHASHI,kazuaki






                                                                           
             Fabrice Couvreur                                              
             <couvreur.fabrice                                             
             @wanadoo.fr>                                             宛先 
             送信者:                    swfmill at osflash.org                
             swfmill-bounces at o                                          cc 
             sflash.org                                                    
                                                                      件名 
                                        [swfmill] Problem with importing   
             2009/08/03 06:20           fonts.                             
                                                                           
                                                                           
             swfmill at osflash.o                                             
                   rg へ                                                   
             返信してください                                              
                                                                           
                                                                           




Hello to all,
I turn to you because no one seems able to solve my problem!
I work with Linux (Ubuntu), and I try to write small animations ASC3
with Haxe + Swfmill. I have problems when I want to import fonts. After
reading various forums, including yours, I have compiled the following
file:
<movie width="320" height="240" framerate="12">
   <background color="#ffaaaa"/>

     <library>
         <font id = "Gentium" name = "Gentium" import = "GenR102.ttf"
glyphs =
"abcdefghijklmnopqrstuvwxyzABCDEFGIJKLMNOPQRSTUVWXYZ0123456789!" />
     </ library>
     <frame>
         <textfield id = "HelloBox" width = "500" height = "250" size =
"30"
font = "Gentium" text = "Hallo Welt 0123456789" />
         <place id="hellobox" name="output" depth="10"/>
     </ frame>
</ movie>
but:
fab-fab @ desktop: ~ $ cd Install /
fab-fab @ desktop: ~ / install $ swfmill simple resource.xml resource.swf
WARNING: FreeType does not like GenR102.ttf
WARNING: could not import GenR102.ttf
WARNING: no name property in DefineFont2 element
fab-fab @ desktop: ~ / install $
Thank you for your help.




_______________________________________________
swfmill mailing list
swfmill at osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org





More information about the swfmill mailing list