We are facing an issue, displaying characters in Arial font style by using CloneSlide method. In the source presentation slide, we have the font for the characters as Arial. While cloning the source slide to another presentation, in the cloned slide the font applied for the characters is TimesNewRoman.
We have observed that the font in the MasterSlides is Calibri. Even on changing the font to "Arial", we are not able to set the font of the cloned Slide to "Arial"
Please look in to this issue and let us know whether there is any workaround and what could be done for the permanent fix. Thank You.
Please find more details for the above issue.
1. Source PPT and Cloned PPT are attached for your reference.
2. Sample source code to replicate the issue.
Below is the sample code snippet to replicate this issue.
Slide slide = null;
Presentation source = new Presentation(@"C:\temp\Source.ppt");
SortedList temp = new SortedList();
Presentation m_presentation = new Presentation();
slide = source.Slides;
source.CloneSlide(slide, m_presentation.Slides.LastSlidePosition + 1, m_presentation, temp);
MemoryStream stream = new MemoryStream();
if (stream != null)
FileStream file = new FileStream(@"c:\temp\Cloned.ppt", FileMode.Create, FileAccess.Write);
byte bytes = stream.ToArray();
file.Write(bytes, 0, (int)stream.Length);
Related posts : https://forum.aspose.com/t/83712