Javascript: FormattingStyle.setFontName Method
Description
Sets the font of the style.
Syntax
<void> FormattingStyle.setFontName(<String> fontName, <EmptyRequestCallback> callback)Parameters
| Parameter | Description |
|---|---|
| fontName | The font's name of the style. |
| callback | Is called when the operation completed. |
Examples
The following example demonstrates FormattingStyle.setFontName in a practical document-editing workflow. It sets the font of the style.
function configureFontName(formattingStyle) {
formattingStyle.setFontName(
"Arial",
function() {
console.log("set font name completed.");
}
);
}