[Papervision3D] Embed Font in MovieMaterial

norbykov norbykov at gmail.com
Mon Aug 13 03:45:58 PDT 2007


Hi! 
What I did is add the font to the library, give it a linkage (class) name,
and then when I create the textfield I instantiate that font class, and set
the textfield's font to that class.
Something like this:
Let's say I added a font and gave it an instance name "FontClass"

var fontInstance:FontClass = new FontClass(); 

var txtField:TextField = new TextField();
var txtFormat:TextFormat = new TextFormat();
txtFormat.font = fontInstance.fontName;

txtField.defaultTextFormat = txtFormat;

That's how I did it, but if anyone has a better solution, I'd be MORE than
happy to hear it!!!! :)


Andrés González & Aragón wrote:
> 
> Hi Everybody,
> 
> I'm trying to show a TextField inside a MovieClip SubClass, but the text
> don't shows. Any idea to embed Fonts with AS (no MXML)?
> 
> Please helpme
> 
> -- 
> Andrés González Aragón
> Ejecutivo Nacional Agel Enterprises LCC
> Desarrollador Multimedia
> http://www.quantium.com.mx
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/Embed-Font-in-MovieMaterial-tf4259923.html#a12124135
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list