DocumentFontSettings Property
Gets or sets document font settings.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
public FontSettings FontSettings { get; set; }

Property Value

Type: FontSettings

This property allows to specify font settings per document. If set to null, default static font settings DefaultInstance will be used.

The default value is null.

Shows how to define alternative fonts if original does not exist

FontSettings fontSettings = new FontSettings();
fontSettings.SubstitutionSettings.TableSubstitution.SetSubstitutes("Times New Roman", new String[] { "Slab", "Arvo" });
See Also