jsPDF nicht festlegen, schriftart-Familie

Kann ich nicht ändern Sie die schriftart-Familie. Dies ist direkt aus jsPDF website:

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.');

Aber hier ist das, was gedruckt wird, für:

jsPDF nicht festlegen, schriftart-Familie

Diese sind alle nur times schriftart. Warum ist die schriftart nicht ändern?

  • Welches OS? Denn ich bin mir ziemlich sicher, dass diese nicht real sind font-Namen. Zumindest sind Sie "Courier", "Helvetica" und "Times" (Gehäuse Angelegenheiten)
InformationsquelleAutor Kousha | 2015-12-11
Schreibe einen Kommentar