Text

doodle.algebra.Text
trait Text extends Algebra

Algebra for creating and styling text.

Attributes

Source
Text.scala
Graph
Supertypes
trait Algebra
class Object
trait Matchable
class Any
Known subtypes
trait GenericText[G]
trait Basic

Members list

Type members

Inherited types

type Drawing[_]

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

Attributes

Inherited from:
Algebra
Source
Algebra.scala

Value members

Abstract methods

def font[A](image: Drawing[A], font: Font): Drawing[A]

Specifies the font to use when rendering text

Specifies the font to use when rendering text

Attributes

Source
Text.scala
def text(text: String): Drawing[Unit]

Render the given String

Render the given String

Attributes

Source
Text.scala

Implicits

Inherited implicits

Attributes

Inherited from:
Algebra
Source
Algebra.scala