The following code snippet shows how to connect custom fonts and compare documents:
importcom.groupdocs.comparison.Comparer;importcom.groupdocs.comparison.options.load.LoadOptions;importjava.nio.file.Path;// ...
// Instantiate the LoadOptions object and create a list of custom font directories.
LoadOptionsloadOptions=newLoadOptions();loadOptions.getFontDirectories().add("./fontPath/");try(Comparercomparer=newComparer(sourceDocument,loadOptions)){comparer.add(targetDocument);finalPathresultPath=comparer.compare(resultDocument);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.