feathersui-starling
feathersui-starling copied to clipboard
TextBlockTextRenderer does not show text when lineRotation set to 270 or 180
How to reproduce: Create a Label with TextBlockTextRenderer, set valid size and position, set text. Observe the text is visible only when lineRotation is set to TextRotation.ROTATE_90 or 0, but not with 270 or 180
this.layout = new AnchorLayout();
var lbl:Label=this.addChild(new Label()) as Label;
lbl.textRendererFactory = function():ITextRenderer
{
var ret:TextBlockTextRenderer = new TextBlockTextRenderer();
return ret;
};
lbl.layoutData= new AnchorLayoutData(NaN,NaN,NaN,NaN,0,0);
lbl.width = 400;
lbl.height = 400;
lbl.textRendererProperties.lineRotation = TextRotation.ROTATE_270;
lbl.text = "Lorem ipsum";
The layout code currently ignores rotation completely, so this will be a non-trivial change that needs to wait for a future version.