We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f41948 + 56e2ff7 commit 8dfc403Copy full SHA for 8dfc403
README.md
@@ -205,6 +205,7 @@ const myFont = ... // load the *.ttf font file as binary string
205
// add the font to jsPDF
206
doc.addFileToVFS("MyFont.ttf", myFont);
207
doc.addFont("MyFont.ttf", "MyFont", "normal");
208
+doc.setFont("MyFont");
209
```
210
211
## Advanced Functionality
types/index.d.ts
@@ -598,6 +598,9 @@ declare module "jspdf" {
598
filters?: string[];
599
userUnit?: number;
600
encryption?: EncryptionOptions;
601
+ putOnlyUsedFonts?: boolean;
602
+ hotfixes?: string[];
603
+ floatPrecision?: number | "smart";
604
}
605
606
export interface Point {
0 commit comments