| Modifier and Type | Method and Description |
|---|---|
int |
getFontSize() |
float |
getHeightOverBaseLine(int fontSize) |
float |
getHeightUnderBaseLine(int fontSize) |
float |
getLineHeight(int fontSize) |
TextSize |
getTextSize(TextSize dst,
FontPacket packet,
boolean spaceAtEnd) |
boolean |
isBold() |
boolean |
isFailed() |
boolean |
isItalic() |
boolean |
isLoaded() |
boolean |
isLoadedOrLoad() |
void |
render(IGL gl,
Array<FontPacket> packets,
boolean forceBlend) |
void |
render(IGL gl,
FontPacket[] packets,
boolean forceBlend) |
void |
render(IGL gl,
FontPacket packet,
boolean forceBlend) |
void |
setFontSize(int size) |
float |
trim(java.lang.String text,
int fontSize,
int maxWidth) |
boolean isLoadedOrLoad()
IFont is loadedboolean isLoaded()
IFont is loadedboolean isFailed()
IFontvoid render(IGL gl, FontPacket packet, boolean forceBlend)
gl - OpenGL contextpacket - font packet to renderforceBlend - fore alpha blending (else alpha testing can be used)void render(IGL gl, FontPacket[] packets, boolean forceBlend)
gl - OpenGL contextpackets - array of FontPacket to rendervoid render(IGL gl, Array<FontPacket> packets, boolean forceBlend)
gl - OpenGL contextpackets - list of FontPacket to renderTextSize getTextSize(TextSize dst, FontPacket packet, boolean spaceAtEnd)
dst - destination to store resultfontSize - -1 for default font size, else the font size in pixelspaceAtEnd - true to take into account space at ends (default may vary from implementation, false for BMFont/SDFont)#getTextSize(TextSize, String, int)int getFontSize()
void setFontSize(int size)
size - new size in pixel, -1 to use default sizefloat getLineHeight(int fontSize)
#getHeightOverBaseLine() + #getHeightUnderBaseLine()float getHeightOverBaseLine(int fontSize)
float getHeightUnderBaseLine(int fontSize)
boolean isBold()
boolean isItalic()
float trim(java.lang.String text,
int fontSize,
int maxWidth)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com