public class BitmapFont extends java.lang.Object implements IFont
BitmapFont class is capable of parsing and loading *.fnt fonts.
A BitmapFont, just like a Font can be used to create Text objects.
Use any of these editors to generate *.fnt fonts:
| Modifier and Type | Class and Description |
|---|---|
class |
BitmapFont.BitmapFontInfo |
static class |
BitmapFont.BitmapFontOptions |
class |
BitmapFont.BitmapFontPage |
| Constructor and Description |
|---|
BitmapFont(TextureManager pTextureManager,
android.content.res.AssetManager pAssetManager,
java.lang.String pAssetPath) |
BitmapFont(TextureManager pTextureManager,
android.content.res.AssetManager pAssetManager,
java.lang.String pAssetPath,
BitmapTextureFormat pBitmapTextureFormat) |
BitmapFont(TextureManager pTextureManager,
android.content.res.AssetManager pAssetManager,
java.lang.String pAssetPath,
BitmapTextureFormat pBitmapTextureFormat,
TextureOptions pTextureOptions) |
BitmapFont(TextureManager pTextureManager,
android.content.res.AssetManager pAssetManager,
java.lang.String pAssetPath,
BitmapTextureFormat pBitmapTextureFormat,
TextureOptions pTextureOptions,
BitmapFont.BitmapFontOptions pBitmapFontOptions) |
BitmapFont(TextureManager pTextureManager,
android.content.res.AssetManager pAssetManager,
java.lang.String pAssetPath,
TextureOptions pTextureOptions) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBase() |
BitmapFont.BitmapFontInfo |
getBitmapFontInfo() |
BitmapFont.BitmapFontPage |
getBitmapFontPage(int pIndex) |
int |
getBitmapFontPageCount() |
BitmapFont.BitmapFontPage[] |
getBitmapFontPages() |
Letter |
getLetter(char pChar) |
float |
getLineHeight() |
int |
getScaleHeight() |
int |
getScaleWidth() |
ITexture |
getTexture() |
boolean |
isPacked() |
void |
load() |
void |
loadTextures() |
void |
unload() |
void |
unloadTextures() |
public BitmapFont(TextureManager pTextureManager, android.content.res.AssetManager pAssetManager, java.lang.String pAssetPath)
public BitmapFont(TextureManager pTextureManager, android.content.res.AssetManager pAssetManager, java.lang.String pAssetPath, BitmapTextureFormat pBitmapTextureFormat)
public BitmapFont(TextureManager pTextureManager, android.content.res.AssetManager pAssetManager, java.lang.String pAssetPath, TextureOptions pTextureOptions)
public BitmapFont(TextureManager pTextureManager, android.content.res.AssetManager pAssetManager, java.lang.String pAssetPath, BitmapTextureFormat pBitmapTextureFormat, TextureOptions pTextureOptions)
public BitmapFont(TextureManager pTextureManager, android.content.res.AssetManager pAssetManager, java.lang.String pAssetPath, BitmapTextureFormat pBitmapTextureFormat, TextureOptions pTextureOptions, BitmapFont.BitmapFontOptions pBitmapFontOptions)
public BitmapFont.BitmapFontInfo getBitmapFontInfo()
public int getBase()
public int getScaleWidth()
public int getScaleHeight()
public int getBitmapFontPageCount()
public BitmapFont.BitmapFontPage[] getBitmapFontPages()
public BitmapFont.BitmapFontPage getBitmapFontPage(int pIndex)
public boolean isPacked()
public ITexture getTexture()
getTexture in interface IFontpublic float getLineHeight()
getLineHeight in interface IFontpublic Letter getLetter(char pChar) throws LetterNotFoundException
getLetter in interface IFontLetterNotFoundExceptionpublic void loadTextures()
public void unloadTextures()