I am trying to generate .docx file from html with PhpWord package (here).
I want to use a custom Persian font (b-Nazanin) in my file. I got these formats of the font: (.ttf, .woff, .z, .cfg.z, .php).
Is there a way to add custom fonts to the PhpWord package? For example loading a TTF file and using it. The documentation only speaks about specifying an existing font, not loading a custom one.
If not, are there any other open-source packages to generate .docx file with custom fonts?