[swfmill] [Fwd: Re: Font Embedding]
mawe
mawe at typeofundefined.com
Wed Jan 21 15:47:55 PST 2009
I'd bet my mum that this has something to do with the oh so great UAC.
gabriel schrieb:
> Hi Axel, great f*** news...
>
> I've tested installing the font and nothing happened... ON VISTA!...
> Tried the same example in xp and it works :-( ...I can go on in this
> way, but any idea in which could be the problem with vista?
>
> thanks again!
> Gabriel
>
> 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> 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
>>>>>
>>>>> On Tue, Jan 13, 2009 at 11:00 AM, gabriel <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
>>>>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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