SaveOptionsDefaultRegularFont Property

Returns or sets font used in case source font is not found. Read-write String.

Namespace:  Aspose.Slides.Export
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.3.0.0 (21.3)
Syntax
public string DefaultRegularFont { get; set; }

Property Value

Type: String

Implements

ISaveOptionsDefaultRegularFont
Examples
[C#]

using (Presentation pres = new Presentation("SomePresentation.pptx"))
{
    HtmlOptions htmlOpts = new HtmlOptions();
    htmlOpts.DefaultRegularFont = "Arial Black";
    pres.Save(@"SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts);
    htmlOpts.DefaultRegularFont = "Lucida Console";
    pres.Save(@"Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts);

    PdfOptions pdfOpts = new PdfOptions();
    pdfOpts.DefaultRegularFont = "Arial Black";
    pres.Save(@"SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts);
}
See Also