Class FontTextureProcessor
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
Class to provide methods to handle processing of font textures.
[ContentProcessor(DisplayName = "Font Texture - MonoGame")]
public class FontTextureProcessor : ContentProcessor<Texture2DContent, SpriteFontContent>, IContentProcessor
- Inheritance
-
FontTextureProcessor
- Implements
- Inherited Members
Constructors
FontTextureProcessor()
Creates a new FontTextureProcessor.
public FontTextureProcessor()
Properties
FirstCharacter
Gets or sets the first character of the font.
public virtual char FirstCharacter { get; set; }
Property Value
PremultiplyAlpha
Gets or sets the flag that indicates if the alpha channel should be premultiplied.
public virtual bool PremultiplyAlpha { get; set; }
Property Value
TextureFormat
Specifies the target output (of type SurfaceFormat) of the texture processor. Used by TextureProcessor.TextureFormat.
public virtual TextureProcessorOutputFormat TextureFormat { get; set; }
Property Value
Methods
GetCharacterForIndex(int)
Gets the character for the specified index relative to the first character.
protected virtual char GetCharacterForIndex(int index)
Parameters
index
intCharacter index.
Returns
- char
Character at index.
Process(Texture2DContent, ContentProcessorContext)
Processes the specified input data and returns the result.
public override SpriteFontContent Process(Texture2DContent input, ContentProcessorContext context)
Parameters
input
Texture2DContentExisting content object being processed.
context
ContentProcessorContextContains any required custom process parameters.
Returns
- SpriteFontContent
A typed object representing the processed input.