Class Font

java.lang.Object
com.xebisco.yield.FileInput
com.xebisco.yield.font.Font

public class Font extends FileInput
The Font class represents a font file with a specified size and font loader.
  • Constructor Details

    • Font

      public Font(String path, double size, FontManager fontManager, FileIOManager ioManager)
      Constructs a new Font object.
      Parameters:
      path - The path to the font file.
      size - The size of the font.
      fontManager - The FontManager instance responsible for loading fonts.
  • Method Details

    • characterMap

      public Map<Character,FontCharacter> characterMap()
      Returns the map containing all the characters and their corresponding FontCharacter objects.
      Returns:
      The map of characters and their corresponding FontCharacter objects.
    • size

      public double size()
      Returns the size of the font.
      Returns:
      The size of the font.