Font
A class used to load fonts
Static Method Summary
Static Public Methods | ||
public static |
Returns a new instance of Font |
Constructor Summary
Public Constructor | ||
public |
constructor(font: String, styles: Object) Creates a new instance of Font |
Method Summary
Public Methods | ||
public |
destroy() Destroy font related tags |
|
public |
Loads the font into the html document |
|
public |
A method to check if a font has been loaded |
Static Public Methods
Public Constructors
Public Methods
public get(srcs: Array): Font source
Loads the font into the html document
Params:
Name | Type | Attribute | Description |
srcs | Array | An array of sources pointing to the font file ( ttf, otf, etc ) |