Javascript: FormattingStyle.getFontName Method
Description
Gets the font of the style.
Syntax
<void> FormattingStyle.getFontName(<RequestStringCallback> callback)Parameters
| Parameter | Description |
|---|---|
| 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);
}
);
}