Class CffFontReader
Reads a CFF font from a stream and returns a CffFont.
Auto-detects OTF/CFF sfnt containers (magic OTTO) from standalone
raw CFF files.
Inherited Members
Namespace: DRIT.Drawing.Font.Cff
Assembly: DRIT.Drawing.dll
Syntax
public static class CffFontReader
Methods
Read(Stream)
Parses the CFF font data from stream and returns a
CffFont.
Declaration
public static CffFont Read(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream |
Returns
| Type | Description |
|---|---|
| CffFont |
Remarks
The stream must be readable and seekable. It is not disposed by this reader.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| InvalidOperationException | The data cannot be parsed as a valid CFF or OTF/CFF font. |