FileFontSource
Contents
[
Hide
]FileFontSource class
Represents the single TrueType font file stored in the file system.
class FileFontSource extends FontSourceBase;
Constructors
| Name | Description |
|---|---|
| constructor(FontSourceBase) | Constructs from a parent object convertible to this. |
| constructor(string) | Ctor. |
Properties
| Property | Type | Description |
|---|---|---|
| filePath | string | Readonly. Path to font file. |
Methods
| Method | Description |
|---|---|
| getType() | Returns the type of the font source. |
constructor(FontSourceBase)
Constructs from a parent object convertible to this.
constructor(obj: FontSourceBase);
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | FontSourceBase | The parent object. |
constructor(string)
Ctor.
constructor(filePath: string);
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | string | path to font file |
filePath
Readonly. Path to font file.
filePath : string;
getType()
Returns the type of the font source.
getType() : FontSourceType;
Returns