Fonts location APIs for Words- Cells- PDF- etc

We’re using Aspose.Total in an application that uses number of the packages (Word, Excel, PDF, etc). I see that each product has different APIs for setting/appending the list of fonts locations. For example:

[Aspose.Words for Java|Documentation]

FontSettings.setFontsFolders(new String[] {“C:\MyFonts\”, “D:\Misc\Fonts\”}, true);

[How to Specify TrueType Fonts Location|Documentation]

The CellsHelper.setFontDirs method accepts an ArrayList so you may specify many font directories using this approach

[For PDF]

com.aspose.pdf.Document.addLocalFontPath

If I’m using all of these products in a single application, do I have to separately call each of the APIs to add a new fonts location? Or can I just use one product’s API and assume (hope) that all the other products will use the same setting?

Thanks,
Tom


Hi Tom,

Thanks for your posting and using Aspose APIs.

Each component is separate component and does not depend or interact with other components. So you will have to set fonts path for each component separately as per their APIs.

Let us know if you have any other question. We will look into it and help you further.