From 136d37cda5dec3f719fd2f2704ac367c3c5051ec Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Mon, 17 Dec 2018 17:07:46 -0800 Subject: [PATCH] change startOffset key name --- fontland/fontland/font.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fontland/fontland/font.rkt b/fontland/fontland/font.rkt index aafb1d46..41edbcff 100644 --- a/fontland/fontland/font.rkt +++ b/fontland/fontland/font.rkt @@ -36,7 +36,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/TTFFont.js (define (+ttf-font port [decoded-tables (mhash)] [src (path->string (object-name port))] - [directory (delay (decode Directory port #:parent (mhash '_startOffset 0)))] + [directory (delay (decode Directory port #:parent (mhash x:start-offset-key 0)))] [ft-face (delay (and src (FT_New_Face (force ft-library) src)))] [hb-font (delay (and src (hb_ft_font_create (force ft-face))))] [hb-buf (delay (hb_buffer_create))]