C# Class H2Font.H2FontClass.H2Font

Show file Open project: troymac1ure/Entity Class Usage Examples

Public Methods

Method Description
H2Font ( string name ) : System
ToString ( ) : string
addCharacter ( int index, Image image ) : char
assignUTF ( int utfIndex, int index ) : void
getCharByIndex ( int index ) : CharInfo
writeFont ( string Filename ) : void
writeString ( string text ) : Bitmap
writeString ( string text, int wrapWidth ) : Bitmap

Private Methods

Method Description
loadCharInfo ( CharInfo ci, bool decodeImage ) : CharInfo

Loads the passed character data into a bitmap contained within a picturebox

loadUTFInfo ( char c, bool decodeImage ) : CharInfo

Same as loadCharInfo, but using a character reference as opposed to charInfo

readFont ( string filename ) : void

Loads a font file into memory, disposing of any previously loaded font first

Method Details

H2Font() public method

public H2Font ( string name ) : System
name string
return System

ToString() public method

public ToString ( ) : string
return string

addCharacter() public method

public addCharacter ( int index, Image image ) : char
index int
image Image
return char

assignUTF() public method

public assignUTF ( int utfIndex, int index ) : void
utfIndex int
index int
return void

getCharByIndex() public method

public getCharByIndex ( int index ) : CharInfo
index int
return System.CharInfo

writeFont() public method

public writeFont ( string Filename ) : void
Filename string
return void

writeString() public method

public writeString ( string text ) : Bitmap
text string
return System.Drawing.Bitmap

writeString() public method

public writeString ( string text, int wrapWidth ) : Bitmap
text string
wrapWidth int
return System.Drawing.Bitmap