Class Fonts


public final class Fonts extends ResourcesContainer<Font>
  • Method Details

    • get

      public Font get(String name, float size)
    • get

      public Font get(String name, int style)
    • get

      public Font get(String name, int style, float size)
    • load

      protected Font load(URL resourceName)
      Loads a custom font with the specified name from game's resources. As a fallback, when no font could be found by the specified fontName, it tries to get the font from the environment by calling.
      Specified by:
      load in class ResourcesContainer<Font>
      Parameters:
      resourceName - The name of the font
      Returns:
      The loaded font.
      See Also: