Interface TextFont
-
- All Known Implementing Classes:
BitmapFont,TTFont
public interface TextFontShared interface between TrueType fonts and bitmap fonts, so that applications can easily switch between the two.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextFontderive(int newSize)Returns a version of this font that uses the same font family and color, but has a different size.TextFontderive(ColorRGB newColor)Returns a version of this font which uses the same font family and size, but has a different color.TextFontderiveBold()Returns a bold version of this font.java.lang.StringgetFamily()intgetSize()
-
-
-
Method Detail
-
getFamily
java.lang.String getFamily()
-
getSize
int getSize()
-
derive
TextFont derive(int newSize)
Returns a version of this font that uses the same font family and color, but has a different size.
-
derive
TextFont derive(ColorRGB newColor)
Returns a version of this font which uses the same font family and size, but has a different color.
-
deriveBold
TextFont deriveBold()
Returns a bold version of this font. All all properties will be identical to the current font.
-
-