• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
CffFontReader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

stream is null.

InvalidOperationException

The data cannot be parsed as a valid CFF or OTF/CFF font.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX