Gets the font name of the selected text.

Introduced: X16.

<void> Selection.getFontName(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

Parameter Description
callback Receives the font name of the selected text. The attribute is an empty string when the text selection contains multiple characters with mixed font names.
errorCallback Optional. Is called when the operation failed with an error.