PS:

If nothing else works and you're in a hurry, maybe this is worth a try.

Make a new fla. Place a textfield on the stage and embed the fonts manually
in the Flash IDE. Put this text field inside a MovieClip and export it.
Publish this fla as a swc, add it to your FB project and somewhere do this
to force the compiler to include this mc in your FB swf.

var dummy:MyMovieClip;

This should force the compiler to include the mc and indirectly the glyphs
you have embbeded in your on stage text field.

This is rather gross and unelegant and I'm not sure if it'll play nice with
text fields created with code, but I generally work with fla's that have
text fields with embedded fonts in the Flase IDE and having a dummy
textfield is sometimes the easier way to make sure font are embbeded for the
whole swf and that all text fields display the fonts correctly.


2010/9/22 Juan Pablo Califano <[email protected]>

> I hear you. The way flash handles fonts is a royal mess.
>
> Have you tried this method?
>
>
> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/text/Font.html#enumerateFonts()
>
> It should give you a list of the fonts that are being embbeded in the SWF
> and their names. It'll not fix the problem per se, but maybe it shows you
> the name of the font as it's registered.
>
>
> Cheers
> Juan Pablo Califano
>
> 2010/9/22 Kerry Thompson <[email protected]>
>
>> Juan Pablo Califano wrote:
>>
>>
>> > var font:Font = new Garamond3Embedded() as Font;
>> > textFormat.font = font.fontName;
>>
>> Well, I tried that too, and still no luck. Just in case it was a path
>> problem, I moved the font into the same folder as my .as file,
>> adjusted the source accordingly, and still no luck.
>>
>> Dang, this shouldn't be this hard. I've used embedded fonts in the
>> past, and they've worked. I've just never tried to do it all in one
>> demo file.
>>
>> Cordially,
>>
>> Kerry Thompson
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to