# How to use an embedded Font

**URL:** https://forum.kirupa.com/t/how-to-use-an-embedded-font/34759
**Category:** flash
**Created:** [November 6, 2003, 1:46am UTC](https://forum.kirupa.com/t/how-to-use-an-embedded-font/34759 "2003-11-06T01:46:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rysolag](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rysolag](https://forum.kirupa.com/u/rysolag)
#### Post date: [November 6, 2003, 1:46am UTC](https://forum.kirupa.com/t/how-to-use-an-embedded-font/34759/1 "2003-11-06T01:46:43Z")

</div>

In my library I have a symbol that is a font and it is exported. The name of it is ‘cn’.

In action script how do I set a TextFields font to use this embedded font?

---

<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: [November 6, 2003, 6:21am UTC](https://forum.kirupa.com/t/how-to-use-an-embedded-font/34759/2 "2003-11-06T06:21:22Z")

</div>

```auto
this.createTextField("my_txt", 0, 0, 0, 0, 0);
my_txt.autoSize = "left";
my_txt.embedFonts = true;
var my_fmt = new TextFormat("cn");
my_txt.setNewTextFormat(my_fmt);
my_txt.text = "Hola!";

```

😉
