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

Free Support Forum - aspose.com

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:

[http://www.aspose.com/docs/display/wordsjava/How+to++Specify+True+Type+Fonts+Location]

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

[http://www.aspose.com/docs/display/cellsjava/How+to+Specify+TrueType+Fonts+Location]

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.