Skip to content

Commit 8dfc403

Browse files
authored
Merge pull request #5 from MrRio/master
Sync Fork from Upstream Repo
2 parents 4f41948 + 56e2ff7 commit 8dfc403

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const myFont = ... // load the *.ttf font file as binary string
205205
// add the font to jsPDF
206206
doc.addFileToVFS("MyFont.ttf", myFont);
207207
doc.addFont("MyFont.ttf", "MyFont", "normal");
208+
doc.setFont("MyFont");
208209
```
209210

210211
## Advanced Functionality

types/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ declare module "jspdf" {
598598
filters?: string[];
599599
userUnit?: number;
600600
encryption?: EncryptionOptions;
601+
putOnlyUsedFonts?: boolean;
602+
hotfixes?: string[];
603+
floatPrecision?: number | "smart";
601604
}
602605

603606
export interface Point {

0 commit comments

Comments
 (0)