indigo.shared.scenegraph.Text
See theText companion object
final case class Text[M <: Material](text: String, alignment: TextAlignment, fontKey: FontKey, material: M, eventHandlerEnabled: Boolean, eventHandler: ((Text[_], GlobalEvent)) => Option[GlobalEvent], position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends DependentNode[Text[M]], SpatialModifiers[Text[M]]
Used to draw text onto the screen based on font sprite sheets (images / textures) and a character mapping instance called FontInfo
. Text
instances are a bit of work to set up, but give super crisp pixel perfect results.
Attributes
Members list
In this article