Table of Contents

Class AtlasPackingException

Namespace
KernSmith
Assembly
KernSmith.dll

Thrown when glyphs don't fit in the texture atlas. Try a larger max texture size.

public class AtlasPackingException : BmFontException, ISerializable
Inheritance
AtlasPackingException
Implements
Inherited Members

Constructors

AtlasPackingException(int, int, int)

Creates a packing error for a glyph that's too big for the texture.

public AtlasPackingException(int glyphWidth, int glyphHeight, int maxTextureSize)

Parameters

glyphWidth int

Glyph width in pixels.

glyphHeight int

Glyph height in pixels.

maxTextureSize int

Max allowed texture dimension in pixels.

AtlasPackingException(string)

Creates a packing error with a message.

public AtlasPackingException(string message)

Parameters

message string

What went wrong.

AtlasPackingException(string, Exception)

Creates a packing error with a message and the original exception.

public AtlasPackingException(string message, Exception inner)

Parameters

message string

What went wrong.

inner Exception

The underlying exception.

Properties

GlyphHeight

Height of the glyph that didn't fit, if known.

public int? GlyphHeight { get; }

Property Value

int?

GlyphWidth

Width of the glyph that didn't fit, if known.

public int? GlyphWidth { get; }

Property Value

int?

MaxTextureSize

Max texture size that was exceeded, if known.

public int? MaxTextureSize { get; }

Property Value

int?