Class FontRegistry
Constructors
(constructor)(textWhizz, designAtomsApiClient)
Constructs a new instance of the FontRegistry class
Declaration
constructor(textWhizz: typeof TextWhizz, designAtomsApiClient: IDesignAtomsApiClient);
Parameters
Properties
ready
Declaration
Property Value
textWhizzFontRegistry
Declaration
get textWhizzFontRegistry(): TextWhizz.FontRegistry;
Property Value
| Type |
Description |
| TextWhizz.FontRegistry |
|
Methods
checkFailedFonts(psNames)
Declaration
checkFailedFonts(psNames: string[]): boolean;
Parameters
| Type |
Name |
Description |
| string[] |
psNames |
|
Returns
clear()
Declaration
Returns
containsFonts(psNames)
Declaration
containsFonts(psNames: string[]): boolean;
Parameters
| Type |
Name |
Description |
| string[] |
psNames |
|
Returns
createFont(psName, size)
Declaration
createFont(psName: string, size: number): TextWhizz.Font;
Parameters
| Type |
Name |
Description |
| string |
psName |
|
| number |
size |
|
Returns
| Type |
Description |
| TextWhizz.Font |
|
loadFonts(psNames)
Declaration
loadFonts(psNames: string[]): Promise<void>;
Parameters
| Type |
Name |
Description |
| string[] |
psNames |
|
Returns
| Type |
Description |
| Promise<void> |
|