minion test

main
Matthew Butterick 7 years ago
parent 1f09f40ebe
commit d5fed41e07

@ -0,0 +1,10 @@
PDFDocument = require 'pdfkit'
fs = require 'fs'
doc = new PDFDocument({compress: no})
doc.pipe(fs.createWriteStream('minion-test.pdf'))
doc.registerFont('the-font', '/Library/Fonts/MinionPro-Regular.OTF')
doc.font('the-font')
.fontSize(25)
.text('Minion Pro Regular OTF', 50, 50, {width: false})
doc.end()
Loading…
Cancel
Save