PD4ML v4 › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › TTF not working with Pro version also footer not working › Re: Re: TTF not working with Pro version also footer not working
pd4ml.useTTF( “java:fonts”, true ); assumes, the fonts and pd4fonts.properties are packed to JAR and the JAR is added to the application CLASSPATH.
Brief info about TTF embedding: pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
If you would like to use fonts from jre/lib/fonts, you need to specify the absolute font directory path. For example:
pd4ml.useTTF( “/usr/lib/jvm/java-1.5.0-sun/jre/lib/fonts”, true );