I have the following code:
WordDocument document = new WordDocument(documentStream); FontSettings settings = new FontSettings(); ArrayList fontSources = new ArrayList(settings.GetFontsSources()); FolderFontSource folderFontSource = new FolderFontSource((UtilityExtensions.GetAssemblyDirectory() + "\\Fonts\\"), true); fontSources.Add(folderFontSource); FontSourceBase updatedFontSources = (FontSourceBase)fontSources.ToArray(typeof(FontSourceBase)); settings.SetFontsSources(updatedFontSources); document.Save(updatedDocument, Aspose.Pdf.SaveFormat.Pdf);
FontFolderSource is getting an MICR TT font and it is indeed present in the folder that is being added to the list. However when I view my saved PDF the font isn’t showing. I don’t have it installed on my computer right now because this will be deployed to an Azure worker and I want to make sure it will process correctly if not installed.