Class AngelCodeFont
java.lang.Object
zombie.core.fonts.AngelCodeFont
- All Implemented Interfaces:
AssetStateObserver, Font
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAngelCodeFont(String fntFile, String imgFile) AngelCodeFont(String fntFile, Texture image) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddrawString(float x, float y, float scale, String text, float r, float g, float b, float a) voiddrawString(float x, float y, float scale, String text, float r, float g, float b, float a, int startIndex, int endIndex) voiddrawString(float x, float y, String text) voiddrawString(float x, float y, String text, float r, float g, float b, float a) voiddrawString(float x, float y, String text, float r, float g, float b, float a, int startIndex, int endIndex) voiddrawString(float x, float y, String text, Color col) voiddrawString(float x, float y, String text, Color col, int startIndex, int endIndex) intintintintintintintintgetYOffset(String text) booleanbooleanisSdf()voidonStateChanged(Asset.State oldState, Asset.State newState, Asset asset) voidsetSdf(boolean b)
-
Field Details
-
chars
-
xoff
public static int xoff -
yoff
public static int yoff -
curCol
-
curR
public static float curR -
curG
public static float curG -
curB
public static float curB -
curA
public static float curA
-
-
Constructor Details
-
AngelCodeFont
- Throws:
FileNotFoundException
-
AngelCodeFont
- Throws:
FileNotFoundException
-
-
Method Details
-
drawString
- Specified by:
drawStringin interfaceFont
-
drawString
- Specified by:
drawStringin interfaceFont
-
drawString
-
drawString
public void drawString(float x, float y, float scale, String text, float r, float g, float b, float a) -
drawString
- Specified by:
drawStringin interfaceFont
-
drawString
public void drawString(float x, float y, String text, float r, float g, float b, float a, int startIndex, int endIndex) -
drawString
public void drawString(float x, float y, float scale, String text, float r, float g, float b, float a, int startIndex, int endIndex) -
getHeight
-
getHeight
-
getLineHeight
public int getLineHeight()- Specified by:
getLineHeightin interfaceFont
-
getWidth
-
getWidth
-
getWidth
-
getWidth
-
getYOffset
-
onStateChanged
- Specified by:
onStateChangedin interfaceAssetStateObserver
-
isLoading
public boolean isLoading() -
isSdf
public boolean isSdf() -
setSdf
public void setSdf(boolean b) -
destroy
public void destroy()
-