# Dynamic text and fonts

**URL:** <https://forum.kirupa.com/t/dynamic-text-and-fonts/178272>\
**Category:** Uncategorized\
**Created:** [February 9, 2006, 12:44am UTC](https://forum.kirupa.com/t/dynamic-text-and-fonts/178272 "2006-02-09T00:44:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pspecial](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pspecial](https://forum.kirupa.com/u/pspecial)\
**Post date:** [February 9, 2006, 12:44am UTC](https://forum.kirupa.com/t/dynamic-text-and-fonts/178272/1 "2006-02-09T00:44:39Z")

</div>

Tried to create a dynamic text field but then realized I cant embed the font the usual way (i.e. the properties panel). Anyone know how this is done? Here’s what I got so far…

this.createEmptyMovieClip(“btn”, 1);  
btn.createTextField(“txt”, 10, 0, 0, 100, 50);  
txt.autoSize = true;  
btn.txt.embedFonts;  
btn.txt.text = “Press”;

btn.txt.setNewTextFormat(myFormat);

myFormat ???
