From d107bd0865e25b42d30cf6ff99547bd946302284 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Thu, 15 Jun 2017 17:02:00 -0700 Subject: [PATCH] note --- pitfall/fontkit/directory.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pitfall/fontkit/directory.rkt b/pitfall/fontkit/directory.rkt index 6e878b59..93572841 100644 --- a/pitfall/fontkit/directory.rkt +++ b/pitfall/fontkit/directory.rkt @@ -57,7 +57,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/tables/directory.js (define table-header (mhash 'tag (unescape-tag tag) 'checkSum 0 - 'offset (+ table-header-size (apply + (map bytes-length tds))) + 'offset (apply + (cons table-header-size (map bytes-length tds))) 'length (bytes-length table-data))) (define table-data-padded (pad-to-32bit table-data))