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

Free Support Forum - aspose.com

Including fonts in Aspose Jar

My company is using Aspose.Words via the Aspose.Words.jdk16.jar
need the wingdings 2 font in order to render checkboxes correctly. On my
computer, Aspose.Words is pulling the font the from the
c:/windows/fonts directory. Our production servers don’t have wingdings 2
and we don’t want an external dependency on a font. Is there any way we
can bundle the font with the jar?

Hi there,

Thanks for your inquiry.

You can set where Aspose.Words manually finds fonts by following the instructions in this article: https://docs.aspose.com/words/java/specify-truetype-fonts-location/


Thanks Adam.

That helps some, but what I’d really like to do is to place the font in the Aspose.Words.jdk16.jar

and have Aspose look in the jar. Is this possible?


Hi Justin,

Thanks for your inquiry. I am afraid, we cannot embed all fonts in Aspose.Words’ jar as too many fonts will increase library’s size. Also, there are license restrictions with many fonts. The solution would be to place fonts in a directory in your solution and instruct Aspose.Words to look into that directory during rendering:

Best regards,