TextLayout

org.nspl.TextLayout$
See theTextLayout companion class
object TextLayout

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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.

Attributes