# Attaching fonts

**URL:** <https://forum.kirupa.com/t/attaching-fonts/64249>\
**Category:** flash\
**Created:** [September 14, 2004, 3:31pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249 "2004-09-14T15:31:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffBrazil](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@JeffBrazil](https://forum.kirupa.com/u/JeffBrazil)\
**Post date:** [September 14, 2004, 3:31pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249/1 "2004-09-14T15:31:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 4:14pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249/2 "2004-09-14T16:14:00Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 4:18pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249/3 "2004-09-14T16:18:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 4:18pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249/4 "2004-09-14T16:18:50Z")

</div>

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

> [@JeffBrazil](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 4:26pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249/5 "2004-09-14T16:26:10Z")

</div>

that seems way more complicated than it should be

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 7:03am UTC](https://forum.kirupa.com/t/attaching-fonts/64249/6 "2004-09-15T07:03:10Z")

</div>

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”)

```auto

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

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 1:01pm UTC](https://forum.kirupa.com/t/attaching-fonts/64249/7 "2004-09-15T13:01:13Z")

</div>

Thanks for your answer. It wil be very helpfull…

Jefferon…
