Back to Website
Show / Hide Table of Contents

Class FontRegistry

Package: @aurigma/design-atoms

Constructors

(constructor)(textWhizz, designAtomsApiClient)

Constructs a new instance of the FontRegistry class

Declaration
constructor(textWhizz: typeof TextWhizz, designAtomsApiClient: IDesignAtomsApiClient);
Parameters
Type Name Description
typeof TextWhizz textWhizz
IDesignAtomsApiClient designAtomsApiClient

Properties

ready

Declaration
get ready(): boolean;
Property Value
Type Description
boolean

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
Type Description
boolean

clear()

Declaration
clear(): void;
Returns
Type Description
void

containsFonts(psNames)

Declaration
containsFonts(psNames: string[]): boolean;
Parameters
Type Name Description
string[] psNames
Returns
Type Description
boolean

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>
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback