diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-20 18:09:51 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-20 18:09:51 +0200 |
commit | 55c83f9a5909ca2d5e327215f91b09c582dd1505 (patch) | |
tree | 10971d20bc23bac114aedd62812b2cbc556a5cb3 | |
parent | b837d828787c6771dafe2698bd1fdf666289f672 (diff) | |
download | gitbook-55c83f9a5909ca2d5e327215f91b09c582dd1505.zip gitbook-55c83f9a5909ca2d5e327215f91b09c582dd1505.tar.gz gitbook-55c83f9a5909ca2d5e327215f91b09c582dd1505.tar.bz2 |
Use helvetica by default for pdf
-rw-r--r-- | lib/config_default.js | 3 | ||||
-rw-r--r-- | lib/generators/ebook.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/config_default.js b/lib/config_default.js index 328531c..044ed23 100644 --- a/lib/config_default.js +++ b/lib/config_default.js @@ -75,8 +75,9 @@ module.exports = { // Add page numbers to the bottom of every page 'pageNumbers': false, - // Font size for the file content + // Font for the file content 'fontSize': 12, + 'fontFamily': 'Helvetica', // Paper size for the pdf // Choices are [u’a0’, u’a1’, u’a2’, u’a3’, u’a4’, u’a5’, u’a6’, u’b0’, u’b1’, u’b2’, u’b3’, u’b4’, u’b5’, u’b6’, u’legal’, u’letter’] diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js index 5802863..1b8ec02 100644 --- a/lib/generators/ebook.js +++ b/lib/generators/ebook.js @@ -123,7 +123,8 @@ Generator.prototype.finish = function() { '--paper-size': String(pdfOptions.paperSize), '--pdf-page-numbers': Boolean(pdfOptions.pageNumbers), '--pdf-header-template': that.getPDFTemplate('header'), - '--pdf-footer-template': that.getPDFTemplate('footer') + '--pdf-footer-template': that.getPDFTemplate('footer'), + '--pdf-sans-family': String(pdfOptions.fontFamily) }); } else if (that.ebookFormat == 'epub') { _.extend(_options, { |