Class FontDescriptionImporter
Provides methods for reading .spritefont files for use in the Content Pipeline.
[ContentImporter(".spritefont", DisplayName = "Sprite Font Importer - MonoGame", DefaultProcessor = "FontDescriptionProcessor")]
public class FontDescriptionImporter : ContentImporter<FontDescription>, IContentImporter
- Inheritance
-
FontDescriptionImporter
- Implements
- Inherited Members
Constructors
FontDescriptionImporter()
Initializes a new instance of FontDescriptionImporter.
public FontDescriptionImporter()
Methods
Import(string, ContentImporterContext)
Called by the XNA Framework when importing a .spritefont file to be used as a game asset. This is the method called by the XNA Framework when an asset is to be imported into an object that can be recognized by the Content Pipeline.
public override FontDescription Import(string filename, ContentImporterContext context)
Parameters
filename
stringName of a game asset file.
context
ContentImporterContextContains information for importing a game asset, such as a logger interface.
Returns
- FontDescription
Resulting game asset.