Uses of Class
playn.core.TextLayout
-
Uses of TextLayout in playn.core
Modifier and TypeFieldDescriptionfinal TextLayout[]
TextBlock.lines
The individual lines of text in this block.Modifier and TypeMethodDescriptionabstract TextLayout
Graphics.layoutText
(String text, TextFormat format) Lays out a single line of text using the specified format.abstract TextLayout[]
Graphics.layoutText
(String text, TextFormat format, TextWrap wrap) Lays out multiple lines of text using the specified format and wrap configuration.Modifier and TypeMethodDescriptionabstract Canvas
Canvas.fillText
(TextLayout text, float x, float y) Fills the text at the specified location.static Rectangle
TextBlock.getBounds
(TextLayout[] lines, Rectangle into) Computes the bounds of a block of text.abstract Canvas
Canvas.strokeText
(TextLayout text, float x, float y) Strokes the text at the specified location.ModifierConstructorDescriptionTextBlock
(TextLayout[] lines) Creates a text block with the suppliedlines
.