HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › fonts included in the html › Re: Re: fonts included in the html
March 22, 2011 at 14:00
#28467
You need to pass either a directory name of the font dir
pd4ml.useTTF(“/windows/fonts”,true);
or refer to a resource, available via the classloader (distinguished by “java:” prefix)
pd4ml.useTTF(“java:fonts”,true);
In both cases pd4fonts.properties file has to be generated in advance with
java -jar pd4ml.jar -configure.fonts …
call.