We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding a Font Entity to PresentationEx

Hi,

Previously we used Export to 2003(PPT). Now we are using Export to 2007(PPTX).

Code Sample:

Presentation pres = new Presentation();

//we compare two fonts

if (string.compare(pres.fonts[i].FontName, fontname, true) == 0)

{

//Statements;

}

//Adding a font entity

FontEntity entity = new FontEntity(m_show, m_show.Fonts[0]);

entity.FontName = font.name;

int fontIndex = pres.Fonts.Add(entity);

Kindly let me know how i can add a font entity to PresentationEx and how can i find work with fonts in an PresentationEx object.

Hi Koundinya,


I like to share that there is no FontEntity class in case of PPTX. Please visit this documentation link for your kind reference to see how to work with fonts in case of PPTX.

Many Thanks,