Table of Contents

Class FontParsingException

Namespace
KernSmith
Assembly
KernSmith.dll

Thrown when a font file can't be read -- for example, a corrupt or unsupported TTF/OTF.

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

Constructors

FontParsingException(string)

Creates a parsing error with a message.

public FontParsingException(string message)

Parameters

message string

What went wrong.

FontParsingException(string, Exception)

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

public FontParsingException(string message, Exception inner)

Parameters

message string

What went wrong.

inner Exception

The underlying exception.

FontParsingException(string, int, string)

Creates a parsing error at a specific location in a font table.

public FontParsingException(string tableTag, int offset, string details)

Parameters

tableTag string

Four-character table tag like "GPOS" or "kern".

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., "GPOS").

public string? TableTag { get; }

Property Value

string