MemoryFontSource
Contents
[
Hide
]MemoryFontSource class
Represents the single TrueType font file stored in memory.
class MemoryFontSource extends FontSourceBase;
Constructors
Constructor | 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 |
---|---|
getFontData() | @deprecated. Please use the ‘fontData’ property instead. Binary font data. |
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(Uint8Array)
Ctor.
constructor(fontData: Uint8Array);
Parameters:
Parameter | Type | Description |
---|---|---|
fontData | number[] | Binary font data. |
fontData
Readonly. Binary font data.
fontData : Uint8Array;
getFontData()
@deprecated. Please use the ‘fontData’ property instead. Binary font data.
getFontData() : Uint8Array;
isNull()
Checks whether the implementation object is null.
isNull() : boolean;
getType()
Returns the type of the font source.
getType() : FontSourceType;
Returns