Class TTFont
- java.lang.Object
-
- nl.colorize.multimedialib.graphics.TTFont
-
public final class TTFont extends java.lang.ObjectRepresents a TrueType font that can be used to draw text. Fonts can be loaded from.ttfusing theMediaLoader, which will convert the font into a format that can be used by the renderer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ColorRGBgetColor()java.lang.StringgetFamily()intgetSize()inthashCode()booleanisBold()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TTFont
public TTFont(java.lang.String family, int size, ColorRGB color, boolean bold)
-
-
Method Detail
-
getFamily
public java.lang.String getFamily()
-
getSize
public int getSize()
-
getColor
public ColorRGB getColor()
-
isBold
public boolean isBold()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-