TextField3D ERROR: missing myFont font

Software: Away3D 3.x

DrMcCleod, Newbie
Posted: 13 December 2011 10:05 PM   Total Posts: 2

I am having some trouble getting an embedded font to be accessible by TextField3D.
The font works fine with a normal TextField when used in a TextFormat object.

The embed takes place as follows:


[Embed(systemFont=“Arial”,
  fontName = “myFont”,
  mimeType = “application/x-font”,
  fontWeight=“normal”,
  fontStyle=“normal”,
  advancedAntiAliasing=“true”,
  embedAsCFF = “false”)]

private var myEmbeddedFont2:Class;

and TextField3D is called as…

var markerArrowText:TextField3D = new TextField3D(“myFont”);
 

At runtime, the debug output shows:

“ERROR: missing myFont font”


Anyone got any suggestions for a fix?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X