CFDocument PDF and Custom Font

Hi,

im trying to add a new language (Chinese) to a existing CF application. Everything works fine except creating the pdf document. The document simply shows ?? instead of the chinese characters. I tried adding the chinese font (SimSun ) by generating a fonts.jar (which worked for me on railo some years ago) and according to LDEV-1698 by adding the new fontDirectory param to cfdocument but nothing did help. I created a simple test page:

http://www.tagmedia.de/pdftest.cfm

http://www.tagmedia.de/pdftest.cfm?nopdf=1
(for showing the same code as html)

I’ve got the feeling i’m missing something basic here, so i’m really thankful for any help.
Setup is latest Lucee version with latest PDF extension on centos6.

Thanks
Matthias

These posts might be helpful…

https://lucee.daemonite.io/t/custom-fonts-in-cfdocument/2715

https://lucee.daemonite.io/t/problem-with-chinese-characters-in-pdf/467

have you seen the newish fontdirectory option?
https://luceeserver.atlassian.net/browse/LDEV-1698

1 Like

I can research that, but since Micha made the most recent changes he might have the answer without spending time on it.