SpriteFontContentWriter

class SpriteFontContentWriter : Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentTypeWriter<SpriteFontContent>
void Write(ContentWriter output, SpriteFontContent value)
Parameters:
  • output (Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter) –
  • value (Microsoft.Xna.Framework.Content.Pipeline.Graphics.SpriteFontContent) –
public string GetRuntimeReader(TargetPlatform targetPlatform)

Gets the assembly qualified name of the runtime loader for this type.

Parameters:
  • targetPlatform (Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform) – Name of the platform.
Returns:

Name of the runtime loader.

public string GetRuntimeType(TargetPlatform targetPlatform)

Gets the assembly qualified name of the runtime target type. The runtime target type often matches the design time type, but may differ.

Parameters:
  • targetPlatform (Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform) – The target platform.
Returns:

The qualified name.

bool ShouldCompressContent(TargetPlatform targetPlatform, System.Object value)

Indicates whether a given type of content should be compressed.

Parameters:
  • targetPlatform (Microsoft.Xna.Framework.Content.Pipeline.TargetPlatform) – The target platform of the content build.
  • value (System.Object) – The object about to be serialized, or null if a collection of objects is to be serialized.
Returns:

true if the content of the requested type should be compressed; false otherwise.