var doc = new jsPDF();

doc.text('This is the default font.', 20, 20);

doc.setFont("courier");
doc.setFontStyle("normal");
doc.text('This is courier normal.', 20, 30);

doc.setFont("times");
doc.setFontStyle("italic");
doc.text('This is times italic.', 20, 40);

doc.setFont("helvetica");
doc.setFontStyle("bold");
doc.text('This is helvetica bold.', 20, 50);

doc.setFont("courier");
doc.setFontStyle("bolditalic");
doc.text('This is courier bolditalic.', 20, 60);

doc.setFont("times");
doc.setFontStyle("normal");
doc.text('This is centred text.', 105, 80, null, null, 'center');
doc.text('And a little bit more underneath it.', 105, 90, null, null, 'center');
doc.text('This is right aligned text', 200, 100, null, null, 'right');
doc.text('And some more', 200, 110, null, null, 'right');
doc.text('Back to left', 20, 120);

doc.text('10 degrees rotated', 20, 140, null, 10);
doc.text('-10 degrees rotated', 20, 160, null, -10);