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(TTFontFiler.java:106)
at asposewobfuscated.pq.a(TTFontFiler.java:35)
at com.aspose.words.n.a(AttributeConverter.java:40)
at com.aspose.words.fo$b.C(DocumentRunSplitter.java:484)
at com.aspose.words.fo$b.moveNext(DocumentRunSplitter.java:456)
at com.aspose.words.fo.a(DocumentRunSplitter.java:200)
at com.aspose.words.aol.UG(RunWriter.java:170)
at com.aspose.words.aol.b(RunWriter.java:138)
at com.aspose.words.fo.(DocumentRunSplitter.java:77)
at com.aspose.words.aqx.a(SpanGenerator.java:225)
at com.aspose.words.fp.ak(DocumentSpanConverter.java:652)
at com.aspose.words.fp.BL(DocumentSpanConverter.java:592)
at com.aspose.words.fp.moveNext(DocumentSpanConverter.java:167)
at com.aspose.words.fp.Bh(DocumentSpanConverter.java:203)
at com.aspose.words.vi.a(LayoutDocument.java: 37)
at com.aspose.words.Document.updatePageLayout(Document.java: 1402)
at com.aspose.words.fh.perform(DocumentActionUpdateLayout.java: 25)
at com.aspose.words.oi.execute(FieldUpdateExecutionItem.java: 78)
at com.aspose.words.ol.hd(FieldUpdater.java: 91)
at com.aspose.words.ol.Ia(FieldUpdater.java: 78)
at com.aspose.words.yc.Th(MailMergeRegion.java: 236)
at com.aspose.words.yc.a(MailMergeRegion.java: 70)
at com.aspose.words.MailMerge.execute(MailMerge.java: 85)
at com.aspose.words.MailMerge.execute(MailMerge.java: 110)
at com.iqmen.export.BaseDocumentBuilder.generateDocument(BaseDocumentBuilder.java:124).

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

Hello
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.

FontSettings.setFontsFolder("C:\\Users\\Andrey\\IdeaProjects\\awtest");
DocumentBuilder b = new DocumentBuilder();
b.getFont().setName("Water on the Oil");
b.getFont().setSize(72);
b.writeln("Hello World!");
b.getDocument().save("TestHelloWorld Out.pdf");

https://docs.aspose.com/words/java/specify-truetype-fonts-location/
Best regards,