Table of Contents

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

message string

What went wrong.

FontFormatException(string, Exception)

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

public FontFormatException(string message, Exception inner)

Parameters

message string

What went wrong.

inner Exception

The underlying exception.

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

tableTag string

Four-character table tag like "head" or "cmap".

offset int

Byte offset where the error happened.

details string

What 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; }

Property Value

string