PdfSaveOptionsUseProjectDefaultFont 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
Syntax
public bool UseProjectDefaultFont { get; set; }

Property Value

Type: Boolean
Examples
Shows how to set custom font that will be used for print of output pdf.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

var options = new PdfSaveOptions
                  {
                      PresentationFormat = PresentationFormat.GanttChart, FitContent = true, UseProjectDefaultFont = false, DefaultFontName = "Segoe UI Black"
                  };
project.Save(OutDir + "CreateProject2_out.pdf", options);
See Also