Package fr.formiko.kokcinelo.tools
Class Fonts
java.lang.Object
com.badlogic.gdx.graphics.g2d.BitmapFont
fr.formiko.kokcinelo.tools.Fonts
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
public class Fonts
extends com.badlogic.gdx.graphics.g2d.BitmapFont
Class that provide a way to load font.
- Since:
- 2.4
- Version:
- 2.4
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g2d.BitmapFont
com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData, com.badlogic.gdx.graphics.g2d.BitmapFont.Glyph
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
filterEmojis
(String s, String color) static com.badlogic.gdx.graphics.g2d.BitmapFont
getDefaultFont
(float fontSize) Load the default font.static String
static String
getTranslation
(String key) static String
getTranslation
(String key, String color) static String
getTranslationWidthDefault
(String key, String sDefault) static String
getTranslationWidthDefault
(String key, String sDefault, String color) static String
listOfCreatureToString
(Map<Class<? extends Creature>, Integer> map) static String
listOfCreatureToString
(Map<Class<? extends Creature>, Integer> map, int splitEveryXCreature) Methods inherited from class com.badlogic.gdx.graphics.g2d.BitmapFont
dispose, draw, draw, draw, draw, draw, getAscent, getCache, getCapHeight, getColor, getData, getDescent, getLineHeight, getRegion, getRegion, getRegions, getScaleX, getScaleY, getSpaceXadvance, getXHeight, isFlipped, load, newFontCache, ownsTexture, setColor, setColor, setFixedWidthGlyphs, setOwnsTexture, setUseIntegerPositions, toString, usesIntegerPositions
-
Field Details
-
DEFAULT_COLOR
- See Also:
-
-
Constructor Details
-
Fonts
public Fonts()
-
-
Method Details
-
getDefaultFont
public static com.badlogic.gdx.graphics.g2d.BitmapFont getDefaultFont(float fontSize) Load the default font.- Parameters:
fontSize
- size of the font.- Returns:
- the default font.
-
filterEmojis
-
filterEmojis
-
getTranslation
-
getTranslation
-
getTranslationWidthDefault
-
getTranslationWidthDefault
-
getIcon
-
listOfCreatureToString
-
listOfCreatureToString
-