FontInfoSubstitutionRule Class |
Namespace: Aspose.Words.Fonts
The FontInfoSubstitutionRule type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Enabled |
Specifies whether the rule is enabled or not.
(Inherited from FontSubstitutionRule.) |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(MyDir + "Missing font.docx"); // Create a new class implementing IWarningCallback and assign it to the PdfSaveOptions class HandleDocumentWarnings callback = new HandleDocumentWarnings(); doc.WarningCallback = callback; FontSettings fontSettings = new FontSettings(); fontSettings.SubstitutionSettings.DefaultFontSubstitution.DefaultFontName = "Arial"; ; fontSettings.SubstitutionSettings.FontInfoSubstitution.Enabled = true;