-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate away from the fork of foliojs packages
- Loading branch information
1 parent
9f5cb8f
commit 5e90ff4
Showing
18 changed files
with
74,783 additions
and
73,382 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,62 @@ | ||
var fs = require('fs'); | ||
var fs = require("fs"); | ||
|
||
var fontContainer = { | ||
vfs: { | ||
'data/Courier.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier.afm', 'utf8'), encoding: 'utf8' }, | ||
'data/Courier-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-Bold.afm', 'utf8'), encoding: 'utf8' }, | ||
'data/Courier-Oblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-Oblique.afm', 'utf8'), encoding: 'utf8' }, | ||
'data/Courier-BoldOblique.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Courier-BoldOblique.afm', 'utf8'), encoding: 'utf8' } | ||
"data/Courier.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Courier.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
"data/Courier-Bold.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Courier-Bold.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
"data/Courier-Oblique.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Courier-Oblique.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
"data/Courier-BoldOblique.afm": { | ||
data: fs.readFileSync( | ||
__dirname + | ||
"/../../../node_modules/pdfkit/js/data/Courier-BoldOblique.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
}, | ||
fonts: { | ||
Courier: { | ||
normal: 'Courier', | ||
bold: 'Courier-Bold', | ||
italics: 'Courier-Oblique', | ||
bolditalics: 'Courier-BoldOblique' | ||
} | ||
} | ||
normal: "Courier", | ||
bold: "Courier-Bold", | ||
italics: "Courier-Oblique", | ||
bolditalics: "Courier-BoldOblique", | ||
}, | ||
}, | ||
}; | ||
|
||
var _global = typeof window === 'object' ? window : typeof global === 'object' ? global : typeof self === 'object' ? self : this; | ||
if (typeof _global.pdfMake !== 'undefined' && typeof _global.pdfMake.addFontContainer !== 'undefined') { | ||
var _global = | ||
typeof window === "object" | ||
? window | ||
: typeof global === "object" | ||
? global | ||
: typeof self === "object" | ||
? self | ||
: this; | ||
if ( | ||
typeof _global.pdfMake !== "undefined" && | ||
typeof _global.pdfMake.addFontContainer !== "undefined" | ||
) { | ||
_global.pdfMake.addFontContainer(fontContainer); | ||
} | ||
|
||
if (typeof module !== 'undefined') { | ||
if (typeof module !== "undefined") { | ||
module.exports = fontContainer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,37 @@ | ||
var fs = require('fs'); | ||
var fs = require("fs"); | ||
|
||
var fontContainer = { | ||
vfs: { | ||
'data/Symbol.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Symbol.afm', 'utf8'), encoding: 'utf8' } | ||
"data/Symbol.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Symbol.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
}, | ||
fonts: { | ||
Symbol: { | ||
normal: 'Symbol' | ||
} | ||
} | ||
normal: "Symbol", | ||
}, | ||
}, | ||
}; | ||
|
||
var _global = typeof window === 'object' ? window : typeof global === 'object' ? global : typeof self === 'object' ? self : this; | ||
if (typeof _global.pdfMake !== 'undefined' && typeof _global.pdfMake.addFontContainer !== 'undefined') { | ||
var _global = | ||
typeof window === "object" | ||
? window | ||
: typeof global === "object" | ||
? global | ||
: typeof self === "object" | ||
? self | ||
: this; | ||
if ( | ||
typeof _global.pdfMake !== "undefined" && | ||
typeof _global.pdfMake.addFontContainer !== "undefined" | ||
) { | ||
_global.pdfMake.addFontContainer(fontContainer); | ||
} | ||
|
||
if (typeof module !== 'undefined') { | ||
if (typeof module !== "undefined") { | ||
module.exports = fontContainer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,62 @@ | ||
var fs = require('fs'); | ||
var fs = require("fs"); | ||
|
||
var fontContainer = { | ||
vfs: { | ||
'data/Times-Roman.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Roman.afm', 'utf8'), encoding: 'utf8' }, | ||
'data/Times-Bold.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Bold.afm', 'utf8'), encoding: 'utf8' }, | ||
'data/Times-Italic.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-Italic.afm', 'utf8'), encoding: 'utf8' }, | ||
'data/Times-BoldItalic.afm': { data: fs.readFileSync(__dirname + '/../../../node_modules/@foliojs-fork/pdfkit/js/data/Times-BoldItalic.afm', 'utf8'), encoding: 'utf8' } | ||
"data/Times-Roman.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Times-Roman.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
"data/Times-Bold.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Times-Bold.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
"data/Times-Italic.afm": { | ||
data: fs.readFileSync( | ||
__dirname + "/../../../node_modules/pdfkit/js/data/Times-Italic.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
"data/Times-BoldItalic.afm": { | ||
data: fs.readFileSync( | ||
__dirname + | ||
"/../../../node_modules/pdfkit/js/data/Times-BoldItalic.afm", | ||
"utf8" | ||
), | ||
encoding: "utf8", | ||
}, | ||
}, | ||
fonts: { | ||
Times: { | ||
normal: 'Times-Roman', | ||
bold: 'Times-Bold', | ||
italics: 'Times-Italic', | ||
bolditalics: 'Times-BoldItalic' | ||
} | ||
} | ||
normal: "Times-Roman", | ||
bold: "Times-Bold", | ||
italics: "Times-Italic", | ||
bolditalics: "Times-BoldItalic", | ||
}, | ||
}, | ||
}; | ||
|
||
var _global = typeof window === 'object' ? window : typeof global === 'object' ? global : typeof self === 'object' ? self : this; | ||
if (typeof _global.pdfMake !== 'undefined' && typeof _global.pdfMake.addFontContainer !== 'undefined') { | ||
var _global = | ||
typeof window === "object" | ||
? window | ||
: typeof global === "object" | ||
? global | ||
: typeof self === "object" | ||
? self | ||
: this; | ||
if ( | ||
typeof _global.pdfMake !== "undefined" && | ||
typeof _global.pdfMake.addFontContainer !== "undefined" | ||
) { | ||
_global.pdfMake.addFontContainer(fontContainer); | ||
} | ||
|
||
if (typeof module !== 'undefined') { | ||
if (typeof module !== "undefined") { | ||
module.exports = fontContainer; | ||
} |
Oops, something went wrong.