Package sk.tuke.kpi.gamelib.graphics
Class Font
- java.lang.Object
-
- sk.tuke.kpi.gamelib.graphics.Font
-
public final class Font extends java.lang.Object
Font for drawing text.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Font.Style
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SIZE
-
Constructor Summary
Constructors Constructor Description Font()
Font(int size)
Font(int size, @NotNull Color color)
Font(int size, @NotNull Color color, @NotNull Font.Style style)
Font(int size, @NotNull Color color, @NotNull Font.Style style, float borderWidth)
Font(int size, @NotNull Color color, @NotNull Font.Style style, float borderWidth, @NotNull Color borderColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull com.badlogic.gdx.graphics.g2d.BitmapFont
getBitmap()
@NotNull Color
getBorderColor()
float
getBorderWidth()
float
getCapHeight()
@NotNull Color
getColor()
float
getLineHeight()
int
getSize()
@NotNull Font.Style
getStyle()
-
-
-
Field Detail
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Font
public Font()
-
Font
public Font(int size)
-
Font
public Font(int size, @NotNull @NotNull Color color)
-
Font
public Font(int size, @NotNull @NotNull Color color, @NotNull @NotNull Font.Style style)
-
Font
public Font(int size, @NotNull @NotNull Color color, @NotNull @NotNull Font.Style style, float borderWidth)
-
Font
public Font(int size, @NotNull @NotNull Color color, @NotNull @NotNull Font.Style style, float borderWidth, @NotNull @NotNull Color borderColor)
-
-
Method Detail
-
getBitmap
@NotNull public @NotNull com.badlogic.gdx.graphics.g2d.BitmapFont getBitmap()
-
getSize
public int getSize()
-
getColor
@NotNull public @NotNull Color getColor()
-
getStyle
@NotNull public @NotNull Font.Style getStyle()
-
getBorderWidth
public float getBorderWidth()
-
getBorderColor
@NotNull public @NotNull Color getBorderColor()
-
getCapHeight
public float getCapHeight()
-
getLineHeight
public float getLineHeight()
-
-