Free Support Forum - aspose.com

Issue in displaying the characters in Arial font style by using CloneSlide method

Hi,

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[0];

source.CloneSlide(slide, m_presentation.Slides.LastSlidePosition + 1, m_presentation, temp);

m_presentation.Slides.RemoveAt(0);

MemoryStream stream = new MemoryStream();

if (stream != null)

{

m_presentation.Write(stream);

}

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

Hi Koundinya,


I have worked with presentation file shared using Aspose.Slides for .NET 7.2.0 and have not been able to observe the issue specified. Please try using the specified product version on your end. I have also attached the generated presentation on your end.

Many Thanks,