Font used for loading premade textures of characters, usually arcade fonts and stuff like that. Currently supports fonts created with BMFont, Littera, and CBFG.
More...
Inherits Otter.BaseFont.
|
| BitmapFont (Texture texture) |
|
| BitmapFont (Texture texture, int charWidth, int charHeight, int charOffset=32) |
|
| BitmapFont (BitmapFontConfig config) |
|
| BitmapFont (string source) |
|
BitmapFont | LoadDataFile (string path, BitmapFontDataType dataType) |
| Loads the data to render the bitmap text with from a file. More...
|
|
BitmapFont | LoadData (string data, BitmapFontDataType dataType) |
| Loads the data to render the bitmap text with. More...
|
|
override float | GetKerning (char first, char second, int characterSize) |
|
|
int | CharCodeOffset = 32 |
|
int | CharacterWidth = 8 |
|
int | CharacterHeight = 8 |
|
int | LineSpacing |
|
bool | EnableKerning = true |
|
int | CharacterOffsetX = 0 |
|
int | CharacterOffsetY = 0 |
|
|
Texture | Texture [get, set] |
|
string | FontData [get, set] |
|
BitmapFontDataType | DataType [get, set] |
|
Font used for loading premade textures of characters, usually arcade fonts and stuff like that. Currently supports fonts created with BMFont, Littera, and CBFG.
BitmapFont Otter.BitmapFont.LoadData |
( |
string |
data, |
|
|
BitmapFontDataType |
dataType |
|
) |
| |
Loads the data to render the bitmap text with.
- Parameters
-
data | The data. |
dataType | Type of the data. |
- Returns
- The BitmapFont
BitmapFont Otter.BitmapFont.LoadDataFile |
( |
string |
path, |
|
|
BitmapFontDataType |
dataType |
|
) |
| |
Loads the data to render the bitmap text with from a file.
- Parameters
-
path | The path to the file that contains the data. |
dataType | The type of data. |
- Returns
- The BitmapFont
The documentation for this class was generated from the following file:
- Otter/Graphics/Text/BitmapFont.cs