Class FileSystemStreamSource
Reads a font from a file on the local file system.
Implements
Inherited Members
Namespace: DRIT.Drawing.Font.Sources
Assembly: DRIT.Drawing.dll
Syntax
public sealed class FileSystemStreamSource : IStreamSource
Constructors
FileSystemStreamSource(string)
Initializes a new FileSystemStreamSource with the specified file path.
Declaration
public FileSystemStreamSource(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | The path to the font file. |
Properties
FilePath
Gets the absolute or relative path to the font file.
Declaration
public string FilePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetFontStream()
Opens and returns a stream over the font data. The caller is responsible for disposing the returned stream.
Declaration
public Stream GetFontStream()
Returns
| Type | Description |
|---|---|
| Stream |