Style.FONT.is(PlayN.graphics().createFont("Times New Roman", Font.Style.PLAIN, 20)),
Style.HALIGN.center, Style.UNDERLINE.is(true));
Styles bigLabel = Styles.make(
Style.FONT.is(PlayN.graphics().createFont("Times New Roman", Font.Style.PLAIN, 32)),
Style.HALIGN.center);
return new Group(AxisLayout.vertical()).add(
new Shim(15, 15),
new Label("Wrapped text").addStyles(Style.HALIGN.center),
new Group(AxisLayout.horizontal(), greenBg.add(Style.VALIGN.top)).add(
AxisLayout.stretch(new Label(TEXT1, smiley).addStyles(
Style.TEXT_WRAP.is(true), Style.HALIGN.left,
Style.ICON_GAP.is(5))),
AxisLayout.stretch(new Label(TEXT2).addStyles(
Style.TEXT_WRAP.is(true), Style.HALIGN.center)),
AxisLayout.stretch(new Label(TEXT3).addStyles(
Style.TEXT_WRAP.is(true), Style.HALIGN.right))),
new Shim(15, 15),
new Label("Styled text").addStyles(Style.HALIGN.center),
new Group(AxisLayout.horizontal().gap(10)).add(
new Label("Plain").addStyles(bigLabel),
new Label("Pixel Outline").addStyles(
bigLabel.add(Style.TEXT_EFFECT.pixelOutline).
add(Style.COLOR.is(Colors.WHITE)).
add(Style.HIGHLIGHT.is(Colors.GRAY))),
new Label("Vector Outline").addStyles(
bigLabel.add(Style.TEXT_EFFECT.vectorOutline,
Style.OUTLINE_WIDTH.is(2f))),
new Label("Shadow").addStyles(
bigLabel.add(Style.TEXT_EFFECT.shadow))),
new Label("Underlining").addStyles(Style.HALIGN.center),
new Group(AxisLayout.horizontal().gap(10)).add(
new Label("Plain").addStyles(smallUnderlined),
new Label("gjpqy").addStyles(smallUnderlined),
new Label("Pixel Outline").addStyles(
smallUnderlined.add(Style.TEXT_EFFECT.pixelOutline)),
new Label("gjpqy").addStyles(
smallUnderlined.add(Style.TEXT_EFFECT.pixelOutline))),
new Group(AxisLayout.horizontal().gap(10)).add(
new Label("Vector Outline").addStyles(
smallUnderlined.add(Style.TEXT_EFFECT.vectorOutline,
Style.OUTLINE_WIDTH.is(2f))),
new Label("gjpqy").addStyles(
smallUnderlined.add(Style.TEXT_EFFECT.vectorOutline,