FontDescriptionImporter¶
-
class
FontDescriptionImporter
: Microsoft.Xna.Framework.Content.Pipeline.ContentImporter<FontDescription>, IContentImporter Provides methods for reading .spritefont files for use in the Content Pipeline.
-
public FontDescription
Import
(string filename, ContentImporterContext context) 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.
Parameters: - filename (string) – Name of a game asset file.
- context (Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext) – Contains information for importing a game asset, such as a logger interface.
Returns: Resulting game asset.
-
public FontDescription