[swfmill] device fonts

erixtekila erixtekila at gmail.com
Thu Apr 20 18:38:48 EDT 2006


Hi list,


I didn't find the way to use device fonts outline instead of embedded.
Any idea ?

Here is something that works.
<library><font id="DejaVu" import="/Library/Fonts/DejaVuSans-Bold.ttf" 
glyphs="version.0123456789 "/>
</library>
<textfield id="version" width="150" height="20" size="8" font="DejaVu" 
text="version ${version_application}"/>

that don't :
<textfield id="version" width="150" height="20" size="8" font="Arial" 
text="version ${version_application}"/>
nor font="_sans"

I tried to look inside swfmill-ll, but no clue.
It seems that when using no @font for the textfield node, it is not 
inserted in the output.

Here is a basic swfmill-ll output of a swf generated with flash without 
embedding the font outlines :
       <DefineFont2 objectID="1" isShiftJIS="0" isUnicode="0" 
isANSII="0" wideGlyphOffsets="0" italic="0" bold="0" language="1" 
name="_sans">
         <glyphs/>
       </DefineFont2>
       <DefineEditText objectID="2" wordWrap="0" multiLine="0" 
password="0" readOnly="1" autoSize="0" hasLayout="1" notSelectable="0" 
hasBorder="0" isHTML="0" useOutlines="0" fontRef="1" fontHeight="280" 
align="0" leftMargin="0" rightMargin="0" indent="0" leading="40" 
variableName="" initialText="salut">

I was not able to produce the same directly from simple language.

If someone could help.


-----------
erixtekila
http://blog.v-i-a.net/




More information about the swfmill mailing list