Fonts

Just want to make sure this is correct before I tell the ol’ boss.

In order for me to dynamically embed a font (through XML) that font must be installed on the server correct?

You have to have that font IN the SWF file. theres 2 way you can do it, you can import into the libaray (and give it a linkage[coding is then required]) or just embed the text in the textfield[no coding required]

I dont know what you mean by “installed on the server”?

Well in other words let’s say I don’t know what font the client will choose. So I can’t embed the font in the library then do a linkage and change that font with a variables name.

I think you can define font through CSS with flash, however the server linky, swf doodle… I have no idea.

suggess google css flash swf tutorial and cross your fingers

You could try embedding the font in a shared library. That way, you can include the linkage identifier in your fla as normal. One of the drawbacks is that, once the client decides which font they want to use, an swf containing that font (with the linkage name used in your fla/swf) has to be uploaded to the server.
This link suggests one way of going about it which might help:
http://bryanlangdon.com/blog/2007/03/22/loading-fonts-dynamically-in-actionscript-2-and-3/

An alternative method is this font manager:
http://www.sharedfonts.com/eng/index.html

Thanks glos. I told them to use a regular font and be done with it lol.

Doesn’t seem like there’s a economical way to achieve what they wanted.

effort != outcome :slight_smile: