Text.this

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.

  1. this()
  2. this(const(T)[] text, Font font, uint characterSize)
  3. this(const(dchar)[] text, Font font, uint characterSize)
    class Text
    this
    (
    T
    )
    (
    const(dchar)[] text
    ,,
    uint characterSize = 30
    )

Parameters

text const(dchar)[]

Text assigned to the string

font Font

Font used to draw the string

characterSize uint

Base size of characters, in pixels

Meta