diff --git a/pitfall/ptest/minion-test.pdf b/pitfall/ptest/minion-test.pdf deleted file mode 100644 index b3d30f52..00000000 Binary files a/pitfall/ptest/minion-test.pdf and /dev/null differ diff --git a/pitfall/ptest/test20.coffee b/pitfall/ptest/test20.coffee index 6158bea9..8935c5ed 100644 --- a/pitfall/ptest/test20.coffee +++ b/pitfall/ptest/test20.coffee @@ -6,12 +6,12 @@ fs = require 'fs' make = (doc) -> # Register a font name for use later - doc.registerFont('the-font', 'assets/charter.otf') + doc.registerFont('the-font', 'assets/fira.otf') # Set the font, draw some text doc.font('the-font') .fontSize(40) - .text('Embedded OTF', 100, 100, {width: false}) + .text('Fira OTF rifle fire', 100, 100, {width: false}) doc.end() diff --git a/pitfall/ptest/test20.pdf b/pitfall/ptest/test20.pdf index 387ba139..35d652eb 100644 Binary files a/pitfall/ptest/test20.pdf and b/pitfall/ptest/test20.pdf differ diff --git a/pitfall/ptest/test20.rkt b/pitfall/ptest/test20.rkt index 2d8e83f9..7bc5cd92 100644 --- a/pitfall/ptest/test20.rkt +++ b/pitfall/ptest/test20.rkt @@ -2,19 +2,18 @@ (require pitfall/pdftest) ;; subset OTF font -(define-runtime-path otf-path "assets/charter.otf") +(define-runtime-path otf-path "assets/fira.otf") ;; embed otf (define (proc doc) ;; Register a font name for use later - (send doc register-font "the-font" (path->string otf-path)) + (register-font doc "the-font" (path->string otf-path)) ;; Set the font, draw some text - (send* doc - [font "the-font"] - [font-size 40] - [text "Embedded OTF" 100 100])) + [font doc "the-font"] + [font-size doc 40] + [text doc "Fira OTF rifle fire" 100 100]) ;; test against non-subsetted font version (define-runtime-path this "test20rkt.pdf") diff --git a/pitfall/ptest/test20c.pdf b/pitfall/ptest/test20c.pdf index 42595f9f..62459e04 100644 Binary files a/pitfall/ptest/test20c.pdf and b/pitfall/ptest/test20c.pdf differ