AS3 Embedded fonts

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


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?