So a buddy of mine and I have come across this issue, and I was wondering if
anyone here had any suggestions.
We've found that if you embed a font in a textField (or any V2 Component)
and set the antiAliasType to advanced we get good crisp antialiasing EXCEPT
on some specific colors. I've posted a simple script below to demonstrate
the differences. The FLA has the Century Gothic font embedded and shared out
as cGothic.
This consists of three text fields. The first uses a system font, and has no
antiAliasType. The second uses the embedded font but no antiAliasType, and
the quality is clearly degraded. The final field uses the embedded font AND
has antiAliasType set to advanced. For the most part, it looks good - until
you get to the last two words, which are clearly degraded. The text goes
through several color shifts and it isn't until that point that the
FlashType seems to fail. Any suggestions?
var s:String = "[0] <font color='#CCCCFF'>Choose</font> <b><i><font
color='#FFCCCC'>RED</font><font color='#FFCBCB'>RED</font><<font
color='#FFCACA'>RED</font><font color='#FFCCCC'>RED</font><font
color='#FFC9C9'>RED</font><font color='#FFC7C7'>RED</font><font
color='#FFC5C5'>RED</font><font color='#FFC3C3'>RED</font> <font
color='#FFC1C1'>RED</font> <font color='#FFBFBF'>RED</font> <font
color='#FFBEBE'>RED</font> <font color='#FFBCBC'>RED</font> <font
color='#FFB9B9'>RED</font> <font color='#FFB1B1'>RED</font> <font
color='#FFB1B1'>RED</font> <font color='#FFB0B0'>RED</font> <font
color='#FFAFAF'>RED</font>"
var tf1:TextFormat = new TextFormat();
tf1.font="_sans";
tf1.size=12;
tf1.color = 0xFFFFFF;
demoText_txt = createTextField("demoText_txt", getNextHighestDepth(), 43,
60, 465, 53);
demoText_txt.setTextFormat(tf1);
demoText_txt.setNewTextFormat(tf1);
demoText_txt.multiline = true;
demoText_txt.selectable = false;
demoText_txt.wordWrap = true;
demoText_txt.html = true;
demoText_txt.htmlText = s;
var tf:TextFormat = new TextFormat();
tf.font="cGothic";
tf.size=12;
tf.color = 0xFFFFFF;
demoText2_txt = createTextField("demoText2_txt", getNextHighestDepth(), 43,
120, 465, 53);
demoText2_txt.setTextFormat(tf);
demoText2_txt.setNewTextFormat(tf);
demoText2_txt.embedFonts = true;
demoText2_txt.multiline = true;
demoText2_txt.selectable = false;
demoText2_txt.wordWrap = true;
demoText2_txt.html = true;
demoText2_txt.htmlText = s;
demoText3_txt = createTextField("demoText3_txt", getNextHighestDepth(), 43,
180, 465, 53);
demoText3_txt.setTextFormat(tf);
demoText3_txt.setNewTextFormat(tf);
demoText3_txt.embedFonts = true;
demoText3_txt.multiline = true;
demoText3_txt.selectable = false;
demoText3_txt.wordWrap = true;
demoText3_txt.html = true;
demoText3_txt.antiAliasType = "advanced";
demoText3_txt.htmlText = s;
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com