DS Server

Javascript: FormattingStyle.getFontName Method

Method|Introduced in 28.0

Description

Gets the font of the style.

Syntax

<void> FormattingStyle.getFontName(<RequestStringCallback> callback)

Parameters

ParameterDescription
callback

Receives the font of the style.

Examples

The following example demonstrates FormattingStyle.getFontName in a practical document-editing workflow. It gets the font of the style.

function inspectFontName(formattingStyle) {
    formattingStyle.getFontName(
        function(result) {
            console.log("get font name result:", result);
        }
    );
}