sfml.graphics.Text
See theText companion trait
object Text
Attributes
Members list
Value members
Concrete methods
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
In this article