UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

31 lines (30 loc) 899 B
export interface IFontData { postScriptName: string; style: string; family: string; system: boolean; default: boolean; } export declare enum FontStyle { Regular = 0, Bold = 1, Italic = 2, BoldItalic = 3, Other = 4 } export interface IFontService { waitInit(): Promise<void>; getCssFontFamily(family: string): string; getCssPsName(postScriptName: string): string; availableFontsByPsName: { [psName: string]: IFontData; }; recognizeStyleByPsName(postScriptName: string): FontStyle; findSuitableFontParams(family: string, requireBold: boolean, requireItalic: boolean): { postScriptName: string; fauxBold: boolean; fauxItalic: boolean; }; findOriginalFamilyName(caseInsetiveFamilyName: string): string; findOriginalPsName(caseInsetivePsName: string): string; }