PDF Plugin not using fonts correctly

I am using the pdf plugin to generate pdf output from a form:

forms.Print_PDF.controller.show()
var success = plugins.pdf_output.startMetaPrintJob();
if (success){

forms.Print_PDF.controller.print(true,false,plugins.pdf_output.getPDFPrinter());
} 
var thePDF = plugins.pdf_output.endMetaPrintJob();
rw_final_report=thePDF
globals.thePDF='rw_final_report';
forms.main.controller.show();

Servoy’s built in pdf plugin seems to convert the output to a PDF which doesnt render the fonts properly. They all come out in a Arial type of font rather than reflecting the time font that shows on the screen.

When i print this screen it seems to print fine and when i use create pdf on the mac print screen it renders the fonts fine.

Could this be the printer driver it selects? is it a basic java one or something that doesnt not render times fonts?
Is there a way of making it pick a better printer driver or is something that the plugin simply is not advanced enough to do?

Does anyone have any experience of this.

David

in the pdf plugin, you will find a function, where you can point to your font-folder.

if you do that, the used fonts are embedded. (it works for standard fonts, like verdana, arial, tahoma, etc…)

but we found that some exotic fonts, weren’t embedded either! :-(

Thanks for that,

Only problem is that it still doesnt seem to work. I am only using times as a second font!

forms.Print_PDF.controller.show()
var success = plugins.pdf_output.startMetaPrintJob();

if (success){
plugins.pdf_output.insertFontDirectory('/Library/Fonts/');
forms.Print_PDF.controller.print(true,false,plugins.pdf_output.getPDFPrinter());
} 
var thePDF = plugins.pdf_output.endMetaPrintJob();
rw_final_report=thePDF
globals.thePDF='rw_final_report';
forms.main.controller.show();


forms.PDF_PREVIEW_WINDOW.controller.show();

is that the correct code. I am on a mac and my fonts are in Macintosh HD/Library/Fonts which i am sure is /Library/Fonts

David