Hi all,

Can anyone tell me how I can pass the font data into textfield3D?

At the moment I have:

import fonts.*

(fonts is a folder full of font files which I copied from the demo)

private var font:* = Helvetica;

then

textField = new TextField3D(textString,font,{textSize:40});

But this last line creates the error:

Type Coercion failed: cannot convert fonts::Helvetica$ to away3d.loaders.data.FontData.

I'm a bit unclear as to what 'Helvetica' is and how it is being handled. How can I convert it to the FontData that it needs?


Ben

Reply via email to