# AS3 Embedded fonts

**URL:** <https://forum.kirupa.com/t/as3-embedded-fonts/192910>\
**Category:** flash\
**Created:** [July 2, 2006, 7:35pm UTC](https://forum.kirupa.com/t/as3-embedded-fonts/192910 "2006-07-02T19:35:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ieatcotten](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@ieatcotten](https://forum.kirupa.com/u/ieatcotten)\
**Post date:** [July 2, 2006, 7:35pm UTC](https://forum.kirupa.com/t/as3-embedded-fonts/192910/1 "2006-07-02T19:35:14Z")

</div>

Hello, I am trying to embed a font so that I can rotate my text field.  
Here is my code:

```auto

var format:TextFormat = new TextFormat();
format.font = "Arial";
format.color = 0xFF0000;
format.size = 14;
format.bold = true;
			
rgbTabText = new TextField();
rgbTabText.defaultTextFormat = format;
rgbTabText.embedFonts = true;
rgbTabText.text = "rgb";
//rgbTabText.rotation = 90;
addChild(rgbTabText);

```

In the documentation it says that

> 

If you set the embedFonts property to true for a text field, you must specify a font for that text by using the font property of a TextFormat object applied to the text field.

Aren’t I doing that?
