DocumentFontsSubsystem.UsingDefaultFont
Contents
[
Hide
]DocumentFontsSubsystem.UsingDefaultFont method
Create new DocumentFontsSubsystem instance using specified default font name.
public static DocumentFontsSubsystem UsingDefaultFont(string defaultFontName,
Dictionary<string, string> fontsSubstitutions = null)
Parameter | Type | Description |
---|---|---|
defaultFontName | String | The default font name. |
fontsSubstitutions | Dictionary`2 | The fonts substitutions. |
Return Value
Examples
Shows how to save a document in pdf format using specified default font.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontName_out.pdf";
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFont("Times New Roman")
});
See Also
- class DocumentFontsSubsystem
- namespace Aspose.Note.Fonts
- assembly Aspose.Note