Package com.xebisco.yield.font
Class Font
java.lang.Object
com.xebisco.yield.FileInput
com.xebisco.yield.font.Font
The
Font class represents a font file with a specified size and font loader.-
Constructor Summary
ConstructorsConstructorDescriptionFont(String path, double size, FontManager fontManager, FileIOManager ioManager) Constructs a new Font object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the map containing all the characters and their corresponding FontCharacter objects.doublesize()Returns the size of the font.Methods inherited from class com.xebisco.yield.FileInput
fileFormat, path
-
Constructor Details
-
Font
Constructs a new Font object.- Parameters:
path- The path to the font file.size- The size of the font.fontManager- TheFontManagerinstance responsible for loading fonts.
-
-
Method Details
-
characterMap
Returns the map containing all the characters and their corresponding FontCharacter objects.- Returns:
- The map of characters and their corresponding
FontCharacterobjects.
-
size
public double size()Returns the size of the font.- Returns:
- The size of the font.
-