Class BitmapText


public class BitmapText extends TextBasedEntity<BitmapText>
Represents a label on screen, you can use any bitmap font in your asset folder as it's font.
  • Constructor Details

    • BitmapText

      public BitmapText()
  • Method Details

    • getFont

      public String getFont()
      Returns the name of the font of this BitmapText in px.

      Default is null.

      Returns:
      the size of the font of this BitmapText.
    • setFont

      public BitmapText setFont(String font)
      Sets the name of the font of this BitmapText.

      Only fonts available to the browser can be displayed.

      Default is null.

      Parameters:
      font - the size for the font of this BitmapText.
      Returns:
      this BitmapText.
      Throws:
      NullPointerException - if font is null.