C# Class Project290.Rendering.FontStatic

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

Méthodes publiques

Méthode 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 méthode

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

Load() public static méthode

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
Résultat void