feathersui-starling icon indicating copy to clipboard operation
feathersui-starling copied to clipboard

TextBlockTextRenderer does not show text when lineRotation set to 270 or 180

Open serjek opened this issue 9 years ago • 1 comments

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";

serjek avatar Apr 27 '16 18:04 serjek

The layout code currently ignores rotation completely, so this will be a non-trivial change that needs to wait for a future version.

joshtynjala avatar Apr 27 '16 22:04 joshtynjala