TextLayout

object TextLayout
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(maxWidth: Option[Double], text: String, fontSize: RelFontSize)(implicit fc: FontConfiguration): TextLayout

factory method for text layouts

factory method for text layouts

Given an optional max width, complete text and a font size it computes the text layout, i.e. breaks the text into lines

It breaks lines on space, tab and newline characters.