Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-20-2011, 04:54 PM   #1
Senior Member
Join Date: Oct 2005
Posts: 746
Default [AS3] embed regular,bold font into a textArea

I can embed one font fine but it doesn't work when I need a bold font with regular. The textArea is outputting html text like '<b> Hi </b> there.'

I'm trying to embed 2 fonts here but it looks like you can only embed one font into the textArea.

var myFont = new MyriadFont();
var tf:TextFormat = new TextFormat(); 
tf.color = 0xFFFFFF; 
tf.font = myFont.fontName; 
tf.size = 12; 

var myFont2 = new MyriadFontBold();
var tf2:TextFormat = new TextFormat(); 
tf2.color = 0xFFFFFF; 
tf2.font = myFont2.fontName; 
tf2.size = 12; 

fbBox.setStyle("embedFonts", true);
fbBox.setStyle("textFormat", tf); 
fbBox.setStyle("textFormat", tf2);
searches turn up nothing . thanks.
peptobismol is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:33 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.