HtmlSaveOptionsUseProjectDefaultFont Property

Gets or sets a value indicating whether the default font must be used for rendering.

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.5
public bool UseProjectDefaultFont { get; set; }

Property Value

Type: Boolean
Shows how to set custom font that will be used to export the project in HTML file.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

var options = new HtmlSaveOptions
                      PresentationFormat = PresentationFormat.GanttChart,
                      FitContent = true,
                      UseProjectDefaultFont = false,
                      DefaultFontName = "Segoe UI Black",
                      UseGradientBrush = false
project.Save(OutDir + "AddDefaultFontDuringSavingAsHtml_out.html", options);
See Also