Hi,
I am trying to convert a docx file to pdf using docx4j after binding values to it. If I save the output as a word document, Myriad Pro font is retained. However when pdf is generated it falls back to Helvetica and Calibri (looking at the pdf font properties). Intermediate fop file also shows font as Calibri.
Going through the code I see that if font is of type CFF it throws an UnsupportedOperationException ( "OpenType fonts with CFF data are not supported, yet"). I assume it is a throwback to the version 0.9x version of fop that was used to build docx4j (my assumption entirely based on some hints i saw in java src comments).
So is there a way to make docx4j generate PDF retaining the Myriad Pro font? Like leveraging fop 2?
Also if the free version is not capable of this, will the commercial version support it?
Any inputs appreciated.
( I had actually raised this initially in Github issues... moving here since this may be a better "forum")