FileFontSource
Contents
[
Hide
]FileFontSource class
Represents the single TrueType font file stored in the file system.
class FileFontSource extends FontSourceBase;
Constructors
Constructor | 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 |
---|---|
getFilePath() | @deprecated. Please use the ‘filePath’ property instead. Path to font file. |
isNull() | Checks whether the implementation object is null. |
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;
getFilePath()
@deprecated. Please use the ‘filePath’ property instead. Path to font file.
getFilePath() : string;
isNull()
Checks whether the implementation object is null.
isNull() : boolean;
getType()
Returns the type of the font source.
getType() : FontSourceType;
Returns