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(immutable(T)[] text, const(Font) font, uint characterSize = 30)
    class Text
    this
    (
    T
    )
    (
    immutable(T)[] text
    ,
    const(Font) font
    ,
    uint characterSize = 30
    )
    if (
    is(T == dchar) ||
    is(T == wchar)
    ||
    is(T == char)
    )

Meta