all groups > flash (macromedia) > february 2007 >
You're in the

flash (macromedia)

group:

setTextFormat affected after embeding font?



setTextFormat affected after embeding font? kpittman_999
2/8/2007 9:53:26 PM
flash (macromedia): I have a dynamic text object I am trying to use setTextFormat with. But after
embeding the font (so it anti-alias) the formating I have set using
setTextFormat does not take affect. Is this by design or am I doing something
wrong?

I have tested it by removing the embeding so I know it is not my code (as the
setTextFormat works on the un-embeded text).

Thanks in advance.

Kevin
Re: setTextFormat affected after embeding font? jesse harding
2/8/2007 10:02:11 PM
Hello kpittman_999,

I've noticed this same issue. I think it's a "feature" ;-)

One thing I have noticed is that it seems that some anti-aliased fonts can
take the formatting, and others can't. Try a few different fonts and see
if you find one that works (and doesn't ruin your design).

Jesse H.
Adobe Community Expert
My site: http://www.jharding.com
Free Blog Radio: http://www.tornadostream.com

[quoted text, click to view]

Re: setTextFormat affected after embeding font? kpittman_999
2/8/2007 10:53:56 PM
OK.... my situation has changed. I un-embeded the font and almost everything
works. I have the folowing code:

The problem now is that the line ---- [i]txtfmt.url =
"http://www.google.com";[/i] ----- is not working. I know my reference to the
instance is working as it changes color and is bolded. Any ideas?




// Create a TextFormat object
var txtfmt:TextFormat = new TextFormat();
// Specify paragraph and character formatting
txtfmt.bold = true;
txtfmt.color = 0x0000FF;
txtfmt.url = "http://www.google.com";
getInfo_1.infoLink_1.setTextFormat(txtfmt);
AddThis Social Bookmark Button