Free Support Forum -

Font's doesn't found

I’ve migrated to Debian.

And now there is an error:
java.lang.IllegalStateException: Cannot find any fonts installed on the system.
java.lang.IllegalStateException: Cannot find any fonts installed on the system.
at asposewobfuscated.pq.a(
at asposewobfuscated.pq.a(
at com.aspose.words.n.a(
at com.aspose.words.aqx.a(
at com.aspose.words.fp.ak(
at com.aspose.words.fp.BL(
at com.aspose.words.fp.moveNext(
at com.aspose.words.fp.Bh(
at com.aspose.words.Document.updatePageLayout(
at com.aspose.words.fh.perform(
at com.aspose.words.oi.execute(
at com.aspose.words.ol.hd(
at com.aspose.words.ol.Ia(
at com.aspose.words.yc.Th(
at com.aspose.words.yc.a(
at com.aspose.words.MailMerge.execute(
at com.aspose.words.MailMerge.execute(
at com.iqmen.export.BaseDocumentBuilder.generateDocument(

I have installed fonts, that’s using in the template. But it doesn’t help.


Thanks for your request. When you render documents to PDF, XPS or convert to EPUB that requires embedding of fonts into a document, then Aspose.Words needs to have access to TrueType fonts. If you run Aspose.Words on a Windows system, then by default it will search for fonts in the system Windows\Fonts folder. But if you run Aspose.Words on a Linux system, it does not have a default location for fonts and you need to specify it explicitly.

Use the new com.aspose.words.FontSettings class and setFontsFolder/setFontsFolders methods to specify the location of TrueType fonts.


DocumentBuilder b = new DocumentBuilder();

b.getFont().setName("Water on the Oil");


b.writeln("Hello World!");

b.getDocument().save("TestHelloWorld Out.pdf");

Best regards,