Class FontParser

java.lang.Object
com.realtime.crossfire.jxclient.skin.io.FontParser

public class FontParser extends Object
Creates Font instances from string representations.
  • Constructor Details

    • FontParser

      public FontParser(@NotNull @NotNull JXCSkinSource skinSource)
      Creates a new instance.
      Parameters:
      skinSource - the skin source for loading resources
  • Method Details

    • getFont

      @NotNull public @NotNull Font getFont(@NotNull @NotNull String name) throws IOException
      Returns a font by font file base name.
      Parameters:
      name - the file base name of the font file to load
      Returns:
      the font
      Throws:
      IOException - if the font cannot be loaded