ctor

sfml.graphics.Text.ctor
object ctor

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Members list

Value members

Concrete methods

def apply(): ctor

Default constructor.

Default constructor.

Creates an empty text.

Attributes

def apply(string: String, font: Font, characterSize: Int): ctor

Construct the text from a string, font and size.

Construct the text from a string, font and size.

Note that if the used font is a bitmap font, it is not scalable, thus not all requested sizes will be available to use. This needs to be taken into consideration when setting the character size. If you need to display text of a certain size, make sure the corresponding bitmap font that supports that size is used.

Value parameters

characterSize

Base size of characters, in pixels

font

Font used to draw the string

string

Text assigned to the string

Attributes