Class FontIcon

java.lang.Object
de.gurkenlabs.litiengine.gui.FontIcon

public class FontIcon extends Object
A fonticon is an class that represents a single character of an icon font.
  • Constructor Details

    • FontIcon

      public FontIcon(Font font, char text)
      Instantiates a new icon.
      Parameters:
      font - the font
      text - the text
    • FontIcon

      public FontIcon(Font font, String unicode)
  • Method Details

    • getFont

      public Font getFont()
      Gets the font.
      Returns:
      the font
    • getText

      public String getText()
      Gets the text.
      Returns:
      the text
    • render

      public void render(Graphics2D g, Color color, float fontSize, double x, double y, boolean bold)
      Render.
      Parameters:
      g - the g
      color - the color
      fontSize - the font size
      x - the x
      y - the y
      bold - the bold