C# Class Fusion.Engine.Graphics.SpriteFont

Inheritance: System.DisposableBase
Show file Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
DrawString ( SpriteLayer spriteBatch, string text, float xPos, float yPos, Color color, int frameIndex, float tracking, bool useBaseLine = true, bool flip = false ) : void

Draws the string

MeasureGlyph ( char ch ) : Rectangle

MeasureString ( string text ) : Rectangle

MeasureStringF ( string text, float tracking ) : RectangleF

Measures string

SpriteFont ( GraphicsDevice rs, Stream stream ) : System

Constrcutor

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetInfo ( char ch ) : SpriteFontInfo.CharInfo

GetKerning ( char ch0, char ch1 ) : float

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DrawString() public method

Draws the string
public DrawString ( SpriteLayer spriteBatch, string text, float xPos, float yPos, Color color, int frameIndex, float tracking, bool useBaseLine = true, bool flip = false ) : void
spriteBatch SpriteLayer
text string
xPos float
yPos float
color Color
frameIndex int
tracking float
useBaseLine bool
flip bool
return void

MeasureGlyph() public method

public MeasureGlyph ( char ch ) : Rectangle
ch char
return Rectangle

MeasureString() public method

public MeasureString ( string text ) : Rectangle
text string
return Rectangle

MeasureStringF() public method

Measures string
public MeasureStringF ( string text, float tracking ) : RectangleF
text string
tracking float
return RectangleF

SpriteFont() public method

Constrcutor
public SpriteFont ( GraphicsDevice rs, Stream stream ) : System
rs Fusion.Drivers.Graphics.GraphicsDevice
stream Stream
return System