MemoryFontSource
Contents
[
Hide
]MemoryFontSource class
Represents the single TrueType font file stored in memory.
class MemoryFontSource extends FontSourceBase;
Constructors
Name | Description |
---|---|
constructor(FontSourceBase) | Constructs from a parent object convertible to this. |
constructor(number[]) | Ctor. |
Methods
Method | Description |
---|---|
getFontData() | Binary font data. |
getType() | Returns the type of the font source. |
isNull() | Checks whether the implementation object is null. |
constructor(FontSourceBase)
Constructs from a parent object convertible to this.
constructor(obj: FontSourceBase);
Parameters:
Parameter | Type | Description |
---|---|---|
obj | FontSourceBase | The parent object. |
constructor(number[])
Ctor.
constructor(fontData: number[]);
Parameters:
Parameter | Type | Description |
---|---|---|
fontData | number[] | Binary font data. |
getFontData()
Binary font data.
getFontData() : number[];
Returns
number[]
getType()
Returns the type of the font source.
getType() : FontSourceType;
Returns
isNull()
Checks whether the implementation object is null.
isNull() : boolean;