Package bagel
Class Font
java.lang.Object
bagel.Font
Represents a loaded font that can be used to draw text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawString(String string, double x, double y) Draw the provided string with its bottom-left at the given (x, y) location.voiddrawString(String string, double x, double y, DrawOptions options) Draw the provided string with its bottom-left at the given (x, y) location with additional options.double
-
Constructor Details
-
Font
Load the font from the given file at the given size. Creating multiple copies of the same font (at the same size) is efficient.
-
-
Method Details
-
drawString
Draw the provided string with its bottom-left at the given (x, y) location. The text will be left-aligned. -
drawString
Draw the provided string with its bottom-left at the given (x, y) location with additional options. The text will be left-aligned. -
getWidth
-