# Embedding fonts in a TextInput field?

**URL:** <https://forum.kirupa.com/t/embedding-fonts-in-a-textinput-field/245704>\
**Category:** flash\
**Created:** [December 3, 2007, 7:35am UTC](https://forum.kirupa.com/t/embedding-fonts-in-a-textinput-field/245704 "2007-12-03T07:35:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zakoue](https://avatars.discourse-cdn.com/v4/letter/z/3be4f8/32.png) [@zakoue](https://forum.kirupa.com/u/zakoue)\
**Post date:** [December 3, 2007, 7:35am UTC](https://forum.kirupa.com/t/embedding-fonts-in-a-textinput-field/245704/1 "2007-12-03T07:35:48Z")

</div>

Hi,

How exactly do I embed a font in a TextInput field? I tried the following:

var tf:TextFormat = new TextFormat( ) ;  
tf.size = 13 ;  
tf.color = 0xffffff ;  
tf.font = “Arial” ;

txtfield.setStyle( “textFormat”, tf ) ;  
txtfield.setStyle( “embedFonts”, true ) ;

This works fine locally, but when I upload the movie to a server the font mysteriously becomes the default black Times New Roman again. Why does this happen?
