C# Class Project290.Rendering.FontStatic

Used for keeping a list of all active fonts in the game.
Datei anzeigen Open project: scastle/Solitude Class Usage Examples

Public Methods

Method Description
Get ( string fontName ) : SpriteFont

Gets the specified font, and returns the corresponding SpriteFont.

Load ( string fontName, string directory ) : void

Loads a font, and matches it to the specified font name for easy use later.

Method Details

Get() public static method

Gets the specified font, and returns the corresponding SpriteFont.
public static Get ( string fontName ) : SpriteFont
fontName string Name of the font.
return Microsoft.Xna.Framework.Graphics.SpriteFont

Load() public static method

Loads a font, and matches it to the specified font name for easy use later.
public static Load ( string fontName, string directory ) : void
fontName string
directory string
return void