mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 06:02:39 +01:00
19 lines
462 B
JavaScript
19 lines
462 B
JavaScript
|
var doc = new jsPDF();
|
||
|
|
||
|
doc.text(20, 20, 'This is the default font.');
|
||
|
|
||
|
doc.setFont("courier");
|
||
|
doc.setFontType("normal");
|
||
|
doc.text(20, 30, 'This is courier normal.');
|
||
|
|
||
|
doc.setFont("times");
|
||
|
doc.setFontType("italic");
|
||
|
doc.text(20, 40, 'This is times italic.');
|
||
|
|
||
|
doc.setFont("helvetica");
|
||
|
doc.setFontType("bold");
|
||
|
doc.text(20, 50, 'This is helvetica bold.');
|
||
|
|
||
|
doc.setFont("courier");
|
||
|
doc.setFontType("bolditalic");
|
||
|
doc.text(20, 60, 'This is courier bolditalic.');
|