Class Font
java.lang.Object
javaforce.ui.Font
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()voidvoidintgetAdvance(char ch) intgetAscent(char ch) Get font ascent.getImage()intintintintintgetMetrics(String txt) static Fontbooleanload(byte[] font, int ptSize) booleanboolean
-
Field Details
-
debug
public static boolean debug
-
-
Constructor Details
-
Font
public Font()
-
-
Method Details
-
load
public boolean load(byte[] font, int ptSize) -
load
-
getTexture
-
getImage
-
bind
public void bind() -
getSystemFont
-
getMaxAscent
public int getMaxAscent() -
getMaxDescent
public int getMaxDescent() -
getMaxAdvance
public int getMaxAdvance() -
getMaxHeight
public int getMaxHeight() -
getLineGap
public int getLineGap() -
getAdvance
public int getAdvance(char ch) -
getAscent
public int getAscent(char ch) Get font ascent. Note : The ascent is usually negative relative to baseline. -
showCursor
public boolean showCursor() -
drawChar
-
drawText
-
getMetrics
-