Otter  0.9.88
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.BitmapFont Class Reference

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.

Public Member Functions

 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)
 

Public Attributes

int CharCodeOffset = 32
 
int CharacterWidth = 8
 
int CharacterHeight = 8
 
int LineSpacing
 
bool EnableKerning = true
 
int CharacterOffsetX = 0
 
int CharacterOffsetY = 0
 

Properties

Texture Texture [get, set]
 
string FontData [get, set]
 
BitmapFontDataType DataType [get, set]
 

Detailed Description

Font used for loading premade textures of characters, usually arcade fonts and stuff like that. Currently supports fonts created with BMFont, Littera, and CBFG.

Member Function Documentation

BitmapFont Otter.BitmapFont.LoadData ( string  data,
BitmapFontDataType  dataType 
)

Loads the data to render the bitmap text with.

Parameters
dataThe data.
dataTypeType 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
pathThe path to the file that contains the data.
dataTypeThe type of data.
Returns
The BitmapFont

The documentation for this class was generated from the following file: