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(Uint8Array) | Ctor. |
Properties
| Property | Type | Description |
|---|---|---|
| fontData | Uint8Array | Readonly. Binary font data. |
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(Uint8Array)
Ctor.
constructor(fontData: Uint8Array);
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontData | number[] | Binary font data. |
fontData
Readonly. Binary font data.
fontData : Uint8Array;
getType()
Returns the type of the font source.
getType() : FontSourceType;
Returns