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
messagestringWhat went wrong.
FontParsingException(string, Exception)
Creates a parsing error with a message and the original exception.
public FontParsingException(string message, Exception inner)
Parameters
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
tableTagstringFour-character table tag like "GPOS" or "kern".
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., "GPOS").
public string? TableTag { get; }