DefaultFontName

HtmlSaveOptions.DefaultFontName property

Gets or sets the default (or fallback) font for rendering.

public string DefaultFontName { get; set; }

Examples

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"
                  };
project.Save(OutDir + "AddDefaultFontDuringSavingAsHtml_out.html", options);

See Also