Hi there,
I’m using Aspose Word to export my report. I want to apply my font for my report.
Following is my code to apply font :
var fontSources = new ArrayList(FontSettings.GetFontsSources());
// Add a new folder source which will instruct Aspose.Words to search the following folder for fonts.
var folderFontSource = new FolderFontSource(@"App_Themes\VisionStylesheet\fonts\Bitstream Fonts\Fonts\Original Garamond\OpenType TTF Std\tt0863m_.ttf", true);
// Add the custom folder which contains our fonts to the list of existing font sources.
fontSources.Add(folderFontSource);
// Convert the Arraylist of source back into a primitive array of FontSource objects.
var updatedFontSources = (FontSourceBase[])fontSources.ToArray(typeof(FontSourceBase));
// Apply the new set of font sources to use.
FontSettings.SetFontsSources(updatedFontSources);
But when I view output. This font hasn’t been applied in my report.Please give me advances for this issue.Many thanks for advances,Thanks,Hanh.