Receiving an Error : "DocumentException: Font 'STSong-Light,BoldItalic' with 'UniGB-UCS2-H' is not recognized."

I have created a PDF Output type report.
However, when I run it, I am getting the following error …

 DocumentException: Font 'STSong-Light,BoldItalic' with 'UniGB-UCS2-H' is not recognized.

If I change it to HTML Output type, the report runs.

I am using
Jmix 2.0.2
Jmix Studio plugin 2.0.4-232

Hello,

You need to add a font to the report, below are links to the documentation.

HTML Templates:
https://docs.jmix.io/jmix/reports/creation/templates.html#template_html

jmix.reports.pdfFontsDirectory:
https://docs.jmix.io/jmix/reports/configuration.html#jmix.reports.pdfFontsDirectory

Regards,
Nikita

Nikita,

I have tried everything in the documentation, but I am still getting the error.
I have jmix.reports.pdfFontsDirectory = C:/Windows/Fonts in my application.properties file
I have specified fonts in my html template. I have spent hours on trying to get it to work.

When I research the error online, I am seeing it relating to Chinese fonts.

Is there a bug, or am I really doing something wrong ?

The error disappeared once I added:

implementation 'com.itextpdf:itext-asian:5.2.0'

to my build.gradle.

Is this the proper solution ? Please, I need some guidance as I do not want my system misconfigured.

Did you add the font that you specified in the HTML to your computer in C:/Windows/Fonts?

Regards,
Nikita

Nikita,
I did not specify any Chinese font in my HTML or any other font.
I tried many scenarios:
(1) specifying a font that exists in c:/Windows/Fonts
(2) not specifying any font
The error remained for all scenarios until I added the ‘itext-asian’ library to my build.gradle