From a1900aa5a102d1776ca58b4e32e9e649729b53f6 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Mon, 13 May 2019 17:12:25 -0500 Subject: [PATCH] more fallback work (addresses #6) --- pitfall/pitfall/font-embedded.rkt | 6 ++---- pitfall/pitfall/font.rkt | 2 +- pitfall/pitfall/text.rkt | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pitfall/pitfall/font-embedded.rkt b/pitfall/pitfall/font-embedded.rkt index 7c9cccde..4b0da853 100644 --- a/pitfall/pitfall/font-embedded.rkt +++ b/pitfall/pitfall/font-embedded.rkt @@ -52,8 +52,6 @@ https://github.com/mbutterick/pdfkit/blob/master/lib/font/embedded.coffee (efont name id ascender descender upm line-gap bbox #f #f efont-embedded efont-encode efont-measure-string font subset unicode widths scale encoding-cache)) - - (define (efont-measure-string ef str size [features null]) ; #f disables features ; null enables default features ; list adds features @@ -66,7 +64,6 @@ https://github.com/mbutterick/pdfkit/blob/master/lib/font/embedded.coffee (define width (for/sum ([p (in-vector posns)]) (glyph-position-x-advance p))) (* width scale)) - (define (efont-encode ef str [features-in null]) (define features (sort (remove-duplicates features-in) bytes