Class UIFont
java.lang.Object
com.ardor3d.extension.ui.text.font.UIFont
Defines a texture based font for use in the UI system.
-
Constructor Summary
ConstructorDescriptionUIFont
(Texture2D texture, Map<Character, CharacterDescriptor> descriptors, int height, int size) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKerning
(char charA, char charB, int amount) getDescriptor
(char c) int
int
int
getKerning
(char charA, char charB)
-
Constructor Details
-
UIFont
public UIFont(Texture2D texture, Map<Character, CharacterDescriptor> descriptors, int height, int size)
-
-
Method Details
-
getFontHeight
public int getFontHeight() -
getFontSize
public int getFontSize() -
getFontTexture
-
getDescriptor
- Parameters:
c
- the char to retrieve descriptor for- Returns:
- a descriptor for the given character, or null if none exists.
-
addKerning
public void addKerning(char charA, char charB, int amount) -
getKerning
public int getKerning(char charA, char charB)
-