Gets the font name of the selected text.
Introduced: X16.
<void> Selection.getFontName(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
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. |
error |
Optional. Is called when the operation failed with an error. |