@aurigma/design-atoms-interfaces
Version:
36 lines (35 loc) • 1.15 kB
TypeScript
/**
* A configuration of font settings.
* @example
* ```json
* {
* "defaultItemsConfig": {
* "text": {
* "font": {
* "postScriptName": "Impact",
* "size": 33,
* "fauxBold": true,
* "fauxItalic": true
* },
* "color": "rgb(30,30,30)"
* }
* }
* }
* ```
* @public
*/
export interface IFontSettingsData {
previewSize?: number | string;
/** The font name. The default value is `"Roboto-Regular"`. */
postScriptName?: string;
/** The font size in points (for example, `8`) or as a percentage of the height of the print area (for example, `"15%"`). The default value is `10` pt. */
size?: number | string;
/** Enables the faux bold style for text. The default value is `false`. */
fauxBold?: boolean;
/** Enables the faux italic style for text. The default value is `false`. */
fauxItalic?: boolean;
/** Enables the all caps style for text. The default value is `false`. */
allCaps?: boolean;
/** Enables the small caps style for text. The default value is `false`. */
smallCaps?: boolean;
}