Attaching fonts

Hi,

I really need some help. I want to use a different font in my website but i want everybody to see it, so i was wondering: Is there a way to attach the font that I want to use and make sure everyone wil be able to see it too?

Thanks
Jefferson

you have to embed the font. Put your text on the screen, and select it… The option should be a button in the properties box, called character… check EMBED ALL CHARACTERS…

This makes your file size go up, but it garauntee’s that everybody will see the font you have embedded…

MX 2004 may be a bit different, but i doubt it…

you also have to make sure the font is set to dynamic instead of static…but i know that ive used static font before without embedding it and it reads on everyones computer perfectly, so i dont know what thats about. anyways, just experiment and see what happens.

Hey Jeff,
If you are simply using text boxes on your stage, all you need to do is go to the properties dialog, select ‘character’, and embed the outlines for your font.

If you are using dynamically created text the process is a litte longer process - If you open the library of your movie, click the icon on the icon on the top right and select ‘New Font’. Choose the font you are using in your movie and add it to your library. You will then need to right click on the library item and set the linkage properties to ‘export for actionscript’ and give the font an identifier (eg ‘myFont’). Reference this in your scripting to use it:

var topstyle:TextFormat = new TextFormat ();
topstyle.font = “myFont”;
topstyle.size = 8;
topstyle.align = “left”;
topstyle.color = 0xFFFFFF;

etc…

Hope this helps!

James

that seems way more complicated than it should be

if you are using Static text field you dont need to embed fonts. otherwise you will need to embed the font but it will finally effect the file size.(app. additional20K). you can reduce the file size by embeding the charactor which satisfied you requirement (Only uppercase letters, lower or Number Etc.)

the way to do this with FMX2004 is

Method 1:
a. select the textBox
b. in the Properties panel press the character button
c. Check Specify Ranges and select the range form below list.

Method 2
a. Create a Font Symbol in the Library Panel for the font face you want to use with textFields in your movie
b. Export or link the symbol with the flash movie(.swf)
c. Set the Embed the fonts for the text filed(s) to true
d. Create a TextFormat object whose font property refers to the fonts actual name (such as “Verdana”)


fontEmbeded = new TextFormat(); //Here we created the TextFormat Object
fontEmbeded.font = ("Verdana") // and Assigned with font face "Verdana
textBoxInstance.embedFonts = true; //Text field's EmbedFonts property should set to true
textBoxInstance.setTextFormat(fontEmbeded); // Finally assigned the textFormat which included the embeded font to the textfiled

Thanks for your answer. It wil be very helpfull…

Jefferon…