# Textfield with shared font

**URL:** <https://forum.kirupa.com/t/textfield-with-shared-font/104669>\
**Category:** Uncategorized\
**Created:** [March 18, 2004, 12:53pm UTC](https://forum.kirupa.com/t/textfield-with-shared-font/104669 "2004-03-18T12:53:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![albert105](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@albert105](https://forum.kirupa.com/u/albert105)\
**Post date:** [March 18, 2004, 12:53pm UTC](https://forum.kirupa.com/t/textfield-with-shared-font/104669/1 "2004-03-18T12:53:56Z")

</div>

I’m building a website which first loads a library with a  
font. The linkage name of that font is font-HelveticaNeueCondensed.

After that I load another swf in which I create a textfield  
with createTextField. How can I asign the shared font to  
the textfield? (It must also be embedded.)  
This is my code but it doesn’t work…

[COLOR=darkblue]  
this.createTextField(“my\_txt”, 1, 0, 0, 236, 230);  
my\_txt.embedFonts = true;  
my\_txt.text = “blabla”;

my\_txtFormat= new TextFormat();  
my\_txtFormat.size = 16;  
my\_txtFormat.font = “font-HelveticaNeueCondensed\*”;  
my\_txt.setTextFormat(my\_txtFormat);  
[/COLOR]

thanks
