evCreate API 5.7 Help

EvFontStyle Interface

The EvFontStyle TS interface defines a blueprint of a JS object that specifies the font, color, and formatting of a given text.

Properties

An EvFontStyle object has the following properties:

optional bold: boolean;

A Boolean, a flag indicating whether the font weight of the given text is bold.

The default value is false.

optional color: EvFill;

An EvFill object, the font color of the given text.

The default value is a black solid color fill.

optional italic: boolean;

A Boolean, a flag indicating whether the font type of the given text is italic.

The default value is false.

optional name: string;

A string, the name of the font of the given text.

The default value is "Noto Serif".

optional shadow: boolean;

A Boolean, a flag indicating whether the given text has shadows behind it.

The default value is false.

optional size: number;

A number, the font size of the given text in points.

The default value is 12.

optional strikethrough: boolean;

A Boolean, a flag indicating whether the given text is crossed out.

The default value is false.

optional underline: boolean;

A Boolean, a flag indicating whether the given text is underlined.

The default value is false.

Examples

  • TS

  • JS

  • { bold: false, color: { data: { color: "#B3282E" }, id: 42, type: EvFillType.Color }, italic: true, name: "roboto", shadow: false, size: 24, strikethrough: false, underline: true }
  • { bold: false, color: { data: { color: "#B3282E" }, id: 42, type: "color" }, italic: true, name: "roboto", shadow: false, size: 24, strikethrough: false, underline: true }
13 April 2025