# Loading text, embedding pixel font, using AS

**URL:** https://forum.kirupa.com/t/loading-text-embedding-pixel-font-using-as/136440
**Category:** Uncategorized
**Created:** [February 4, 2005, 9:55pm UTC](https://forum.kirupa.com/t/loading-text-embedding-pixel-font-using-as/136440 "2005-02-04T21:55:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)
#### Post date: [February 4, 2005, 9:55pm UTC](https://forum.kirupa.com/t/loading-text-embedding-pixel-font-using-as/136440/1 "2005-02-04T21:55:43Z")

</div>

Hi,

I am trying to load text externally, and turn into a pixel font, but the font doesn’t show, only a deafult font,  
The code I use is:

> 

this.createTextField(“txt”, 1, 420, 140, 300, 300);  
embedFonts = true;  
txt.multiline = true;  
txt.wordWrap = true;  
loadVariables(“tekstje.txt”,“\_root”);  
txt.variable=“a”;  
var fmt:TextFormat = new TextFormat();  
fmt.font =“FFF Reaction Trial”;  
fmt.size = 8;  
txt.setTextFormat(fmt);

Is there something missing or wrong?

thanks again,

Jerryj.
