SetFontFamily
function SetFontFamily(sFontFamily: string = null): ApiParagraph
Description
Sets all 4 font slots with the specified font family.
Parameters
- sFontFamily
string
null The font family or families used for the current paragraph.
Returns
ApiParagraph
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is a paragraph with the font family set to 'Consolas'.");
oParagraph.SetFontFamily("Consolas");