Table of Contents

Class FontTextureProcessor

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Processors
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

char

PremultiplyAlpha

Gets or sets the flag that indicates if the alpha channel should be premultiplied.

public virtual bool PremultiplyAlpha { get; set; }

Property Value

bool

TextureFormat

Specifies the target output (of type SurfaceFormat) of the texture processor. Used by TextureProcessor.TextureFormat.

public virtual TextureProcessorOutputFormat TextureFormat { get; set; }

Property Value

TextureProcessorOutputFormat

Methods

GetCharacterForIndex(int)

Gets the character for the specified index relative to the first character.

protected virtual char GetCharacterForIndex(int index)

Parameters

index int

Character 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 Texture2DContent

Existing content object being processed.

context ContentProcessorContext

Contains any required custom process parameters.

Returns

SpriteFontContent

A typed object representing the processed input.