Class FontFormatException
- Namespace
- KernSmith
- Assembly
- KernSmith.dll
Thrown when a font file's binary structure is invalid -- for example, a corrupt or truncated table directory, an unsupported sfnt version, or out-of-bounds table offsets.
public class FontFormatException : BmFontException, ISerializable
- Inheritance
-
FontFormatException
- Implements
- Inherited Members
Constructors
FontFormatException(string)
Creates a format error with a message.
public FontFormatException(string message)
Parameters
messagestringWhat went wrong.
FontFormatException(string, Exception)
Creates a format error with a message and the original exception.
public FontFormatException(string message, Exception inner)
Parameters
FontFormatException(string, int, string)
Creates a format error at a specific location in a font table.
public FontFormatException(string tableTag, int offset, string details)
Parameters
tableTagstringFour-character table tag like "head" or "cmap".
offsetintByte offset where the error happened.
detailsstringWhat went wrong.
Properties
Offset
Byte offset in the file where the error happened, if known.
public int? Offset { get; }
Property Value
- int?
TableTag
Which font table had the error, if known (e.g., "cmap").
public string? TableTag { get; }