GxTitle.setFontFamily

Syntax

setFontFamily(value: PP.Font.Family || String);

Parameters

value. Font name to be set.

Description

The setFontFamily method sets title font name.

Example

To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). To show the title, click the Title button on the Home tab. Change title font:

// Get title
var title = expressBox.getDataView().getTitleView();
// Change title font
title setFontFamily(PP.Font.Family.Calibri);

As a result, a new font is set for title text:

See also:

GxTitle