[swfmill] [Fwd: Re: Font Embedding]
Jens-Fabian Goetzmann
post at jefago.de
Wed Feb 4 04:26:23 PST 2009
Do you have the font file in the correct directory and readable by your
user account?
Regards,
Jens-Fabian Goetzmann
gabriel schrieb:
> Hi Cristian,
>
> so what I'm missing?
>
> do you see any error in the code?
>
> i'm running it like:
>
> swfmill.exe simple embedding.xml embedding.swf
>
> is that correct?
> anything that would no be that obvious?
>
> thanks
>
>
> Baluta Cristian wrote:
>> yes, i see the correct font
>>
>> On Wed, Feb 4, 2009 at 2:08 PM, gabriel <gbelvedere at gmail.com
>> <mailto:gbelvedere at gmail.com>> wrote:
>>
>>
>> hi again..
>>
>> those who said "it works for me", by it works, do you mean that
>> you see a weird font?
>>
>> this is the font I expect to see
>>
>>
>> but this is what I get...
>>
>>
>>
>>
>>
>> I really don't get it.
>> I'm running swfmill from vista, XP, y ubuntu, and I get the same
>> thing :S
>>
>>
>> I paste my **really** simple code here to see if any of you find
>> any error but I can't see it :(
>>
>>
>> <movie width="320" height="240" framerate="12">
>> <background color="#ffffff"/>
>> <font id="jettat" name="jettat" import="jettat.ttf" />
>> <textfield id="hellobox" width="200" height="50" size="20"
>> font="jettat" text="HELLO world!"/>
>> <place id="hellobox" name="output" depth="10"/>
>> <frame/>
>> </movie>
>>
>>
>>
>>
>> thanks again
>>
>>
>>
>> Axel Huizinga wrote:
>>> Hi Gabriel, are you working with windows?
>>> I tried your example and on windows it didn't work for me too
>>> until I installed the font into the
>>> windows fonts directory - weird but then it works
>>>
>>> Axel
>>>> Mark, thanks I can't figure it out...
>>>>
>>>> I've tried your suggestion and no way:
>>>>
>>>> <?xml version="1.0" encoding="iso-8859-1" ?>
>>>>
>>>> <movie width="320" height="240" framerate="12">
>>>> <background color="#ffffff"/>
>>>> <font id="*jettat*" name="*jettat*" import="*jettat*.ttf" />
>>>> <textfield id="hellobox" width="200" height="50" size="20"
>>>> font="*jettat*" text="HELLO world!"/>
>>>> <place id="hellobox" name="output" depth="10"/>
>>>> <frame/>
>>>> </movie>
>>>>
>>>> The library tag has something to do here? swfmill is not
>>>> complaining about anything.
>>>> The TTF file is called "jettat.ttf" and the font name is "Jetta
>>>> Tech". I assume that @font in textfield is "jettat" (the font
>>>> id) right?
>>>> I've attached the ttf file, can you test it please? so we know
>>>> if is working or not?
>>>>
>>>> I'm compiling like this:
>>>>
>>>> swfmill.exe simple testText.xml testText.swf
>>>>
>>>> is that correct?
>>>>
>>>> thanks again.
>>>> Gabriel
>>>>
>>>> Mark Winterhalder wrote:
>>>>>> What is vera.ttf ? it is the real TrueType file?
>>>>>>
>>>>> Yes.
>>>>>
>>>>>
>>>>>> The ID (vera in this case) may be anything? or should be the font name, and
>>>>>> how do you use it in the TextField?
>>>>>>
>>>>> Yes, both -- it /may/ be anything, but /should/ be the font name for
>>>>> clarity's sake.
>>>>> What's missing in the tutorial, because font handling in Swfmill has
>>>>> developed much further since it was written, is that there's also a
>>>>> @name attribute to go with @id. @id is the Swfmill internal name (for
>>>>> textfields created in Swfmill), @name is for AS usage (textfields
>>>>> created by the script).
>>>>>
>>>>> So, try this:
>>>>> <font id="KlingonBlade" name="KlingonBlade" import="KlingonBlade.ttf" />
>>>>>
>>>>> Note the @name attribute I added. An advantage of this is that you can
>>>>> import multiple font types, like normal, bold, italic etc., and all
>>>>> give them the same @name. When you use a bold style in your textfield,
>>>>> the appropriate font style will be chosen.
>>>>>
>>>>> HTH,
>>>>> Mark
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jan 15, 2009 at 10:14 AM, gabriel <gbelvedere at gmail.com> <mailto:gbelvedere at gmail.com> wrote:
>>>>>
>>>>>> Hi Robin,
>>>>>>
>>>>>> I've already checked this link, but I had problems doing this:
>>>>>>
>>>>>> Fonts work slightly different. To import all numerical characters of
>>>>>> vera.ttf as "vera", you would add the following after the library node:
>>>>>>
>>>>>> <font id="vera" import="library/vera.ttf" glyphs="0123456789"/>
>>>>>>
>>>>>>
>>>>>>
>>>>>> What is vera.ttf ? it is the real TrueType file?
>>>>>> The ID (vera in this case) may be anything? or should be the font name, and
>>>>>> how do you use it in the TextField?
>>>>>>
>>>>>> I made a quick (really quick) sample with a weird TTF and it does'nt work
>>>>>> for me :(
>>>>>>
>>>>>> <?xml version="1.0" encoding="iso-8859-1" ?>
>>>>>>
>>>>>> <movie width="320" height="240" framerate="12">
>>>>>> <background color="#ffffff"/>
>>>>>> <font id="KlingonBlade" import="KlingonBlade.ttf"
>>>>>> glyphs="abcdefghijklmnopqrstuvwxyz!"/>
>>>>>> <textfield id="hellobox" width="200" height="50" size="20"
>>>>>> font="KlingonBlade" text="hello world!"/>
>>>>>> <place id="hellobox" name="output" depth="10"/>
>>>>>> <frame/>
>>>>>> </movie>
>>>>>>
>>>>>> and this is what I get
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> thanks again for the time!
>>>>>> Gabriel
>>>>>>
>>>>>>
>>>>>> Robin Palotai wrote:
>>>>>>
>>>>>> Hi!, Check http://swfmill.org/doc/using-swfmill.html#fonts
>>>>>> Cheers
>>>>>>
>>>>>> Robin
>>>>>> --
>>>>>> www.mindless-labs.com <http://www.mindless-labs.com>
>>>>>>
>>>>>> On Tue, Jan 13, 2009 at 11:00 AM, gabriel <gbelvedere at gmail.com> <mailto:gbelvedere at gmail.com> wrote:
>>>>>>
>>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> can anyone please point me in the right direction about embedding fonts with
>>>>>> swfmill?
>>>>>>
>>>>>>
>>>>>> thanks
>>>>>> Gabriel
>>>>>>
>>>>>> _______________________________________________
>>>>>> swfmill mailing list
>>>>>> swfmill at osflash.org <mailto:swfmill at osflash.org>
>>>>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> swfmill mailing list
>>>>>> swfmill at osflash.org <mailto:swfmill at osflash.org>
>>>>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> swfmill mailing list
>>>>>> swfmill at osflash.org <mailto:swfmill at osflash.org>
>>>>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>>>>>
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> swfmill mailing list
>>>>> swfmill at osflash.org <mailto:swfmill at osflash.org>
>>>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>>>>
>>>>>
>>>> ------------------------------------------------------------------------
>>>> _______________________________________________
>>>> swfmill mailing list
>>>> swfmill at osflash.org <mailto:swfmill at osflash.org>
>>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>>>
>>>
>>> ------------------------------------------------------------------------
>>> _______________________________________________ swfmill mailing
>>> list swfmill at osflash.org <mailto:swfmill at osflash.org>
>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>
>> _______________________________________________
>> swfmill mailing list
>> swfmill at osflash.org <mailto:swfmill at osflash.org>
>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>
>>
>>
>>
>> --
>> Baluta Cristian
>> http://ralcr.com
>> http://imagin.ro
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> swfmill mailing list
>> swfmill at osflash.org
>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
More information about the swfmill
mailing list