Class FontDefinition
Represents a font definition.
Implements
Inherited Members
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public sealed class FontDefinition : IDisposable
Constructors
FontDefinition(string, Stream)
Initializes a new instance of the FontDefinition class.
Declaration
public FontDefinition(string fontFamily, Stream fontReader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fontFamily | The font family. |
| Stream | fontReader | The stream to read the font file. |
Properties
FontFamily
Gets the font family.
Declaration
public string FontFamily { get; }
Property Value
| Type | Description |
|---|---|
| string |
FontReader
Gets the stream to read the font file.
Declaration
public Stream FontReader { get; }
Property Value
| Type | Description |
|---|---|
| Stream |
Methods
Dispose()
Disposes the font reader.
Declaration
public void Dispose()