public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Text();
String[] loadFonts = new String[] { dataDir + "CustomFonts.ttf" };
// Load the custom font directory fonts
FontsLoader.LoadExternalFonts(loadFonts);
// Do Some work and perform presentation/slides rendering
using (Presentation presentation = new Presentation(dataDir + "DefaultFonts.pptx"))
presentation.Save(dataDir + "NewFonts_out.pptx", SaveFormat.Pptx);
// Clear Font Cachce
FontsLoader.ClearCache();
}
}