Hi, when i try to create new TextStyle it looks like font size is ignored, perhaps im doing it wrong?
Project project = new Project();
SaveOptions options = new PdfSaveOptions();
Aspose.Tasks.Task task = project.RootTask.Children.Add("Building House");
Aspose.Tasks.Task subtask1 = task.Children.Add("Laying foundation");
Aspose.Tasks.Task subtask2 = task.Children.Add("Roof works");
Aspose.Tasks.Task subtask3 = task.Children.Add("Insulation and Drywall");
task.Start = new DateTime(2024, 8, 20, 8, 0, 0, DateTimeKind.Utc);
task.Finish = new DateTime(2024, 8, 24, 17, 0, 0, DateTimeKind.Utc);
subtask1.Start = new DateTime(2024, 8, 20, 8, 0, 0, DateTimeKind.Utc);
subtask1.Finish = new DateTime(2024, 8, 20, 17, 0, 0, DateTimeKind.Utc);
subtask2.Start = new DateTime(2024, 8, 21, 8, 0, 0, DateTimeKind.Utc);
subtask2.Finish = new DateTime(2024, 8, 22, 17, 0, 0, DateTimeKind.Utc);
subtask3.Start = new DateTime(2024, 8, 23, 8, 0, 0, DateTimeKind.Utc);
subtask3.Finish = new DateTime(2024, 8, 24, 17, 0, 0, DateTimeKind.Utc);
var style = new TextStyle();
style.Color = Color.OrangeRed;
style.Font = new FontDescriptor("Calibri", 30F, FontStyles.Bold | FontStyles.Italic);
style.ItemType = TextItemType.SummaryTasks;
style.BackgroundColor = Color.Aqua;
style.BackgroundPattern = BackgroundPattern.DarkDither;
options.TextStyles = new List<TextStyle>
{
style
};
project.Save("project_test.pdf", options);