From a283ee11b79dc8253958910fbfb794af20c32582 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 21 Jun 2017 20:35:51 -0700 Subject: [PATCH] inspect --- pitfall/fontkit/GPOS-test.coffee | 3 ++- pitfall/fontkit/GPOS.rkt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pitfall/fontkit/GPOS-test.coffee b/pitfall/fontkit/GPOS-test.coffee index 28a5f91d..613dcc41 100644 --- a/pitfall/fontkit/GPOS-test.coffee +++ b/pitfall/fontkit/GPOS-test.coffee @@ -2,7 +2,8 @@ fontkit = require '../pdfkit/node_modules/fontkit' fira_path = "../pitfall/test/assets/fira.ttf" f = fontkit.openSync(fira_path) -console.log(f.GPOS) +thing = f.GPOS.lookupList +console.log f.GPOS.lookupList.get(0) ### { version: 65536, diff --git a/pitfall/fontkit/GPOS.rkt b/pitfall/fontkit/GPOS.rkt index 90fcaf05..bd248757 100644 --- a/pitfall/fontkit/GPOS.rkt +++ b/pitfall/fontkit/GPOS.rkt @@ -100,7 +100,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/tables/GPOS.js (define-subclass VersionedStruct (GPOSLookup-VersionedStruct)) (define GPOSLookup (+GPOSLookup-VersionedStruct - (λ (parent) (or (· parent parent res lookupType) + (λ (parent) (or (· parent parent res ) (raise-argument-error 'GPOSLookup "parent object" #f))) (dictify ;; Single Adjustment