// layout our text, if we have any
if (haveText) {
TextStyle style = Style.createTextStyle(TextWidget.this);
// TODO: should we do something with a y-hint?
if (hints.width > 0 && wrap) {
text = new StyledText.Block(curtext, style, new TextWrap(hints.width),
Style.toAlignment(resolveStyle(Style.HALIGN)));
} else {
text = new StyledText.Span(curtext, style);
}
}