|
Pd4ml api is right now defaulting the generated pdf to Times New Roman fonttype.
I just want Verdana and Georgia fontype (.ttf) to be used while generating the pdf. The PD4ML demo jar code I am using is as below:
PD4ML pd4ml = new PD4ML(); pd4ml.useTTF("/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/fonts",true) pd4ml.setDefaultTTFs("Verdana", "Georgia"); pd4ml.enableDebugInfo();
pd4fonts.properties file present in System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/fonts directory has following contents:
.Keyboard=Keyboard.ttf Georgia=georgia.ttf Verdana=verdana.ttf
Please let me know if I am missing anything obvious since I have the required .ttf files in the above directory. Any help would be appreciated.
|