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
glyphWidthintGlyph width in pixels.
glyphHeightintGlyph height in pixels.
maxTextureSizeintMax allowed texture dimension in pixels.
AtlasPackingException(string)
Creates a packing error with a message.
public AtlasPackingException(string message)
Parameters
messagestringWhat went wrong.
AtlasPackingException(string, Exception)
Creates a packing error with a message and the original exception.
public AtlasPackingException(string message, Exception inner)
Parameters
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?