[I just worked this out - I needed to set 'use device fonts'.]
When I initialise a textbox with the following code:
var tf2:TextField = createCustomTextField(10, 50, 400, 22);
tf2.htmlText = '<FONT FACE="Impact"><i>Lorem ipsum</i>';
function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
var result:TextField = new TextField();
result.x = x;
result.y = y;
result.width = width;
result.height = height;
addChild(result);
return result;
}
everything works just great, and exactly as you'd expect - I get the requested text in slanted Impact. On the other hand, if I create the textbox using the CS5 IDE, even if I embed Impact (I can't embed Impact italic, because there doesn't seem to be such a thing), I can't get it to italicise at all - the italicized text simply disappears. This is very confusing - what's going on?
I don't think this is the question everyone else keeps asking about the CS4/CS5 shift, but it could conceivably be - sorry if it is!