From 87e568f115b6c8956f6ce4f17dcc484f0361368d Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Thu, 30 May 2019 17:18:53 -0700 Subject: [PATCH] use CFF stream only --- fontland/fontland/cff-glyph.rkt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fontland/fontland/cff-glyph.rkt b/fontland/fontland/cff-glyph.rkt index 2134dd06..dd2ba97e 100644 --- a/fontland/fontland/cff-glyph.rkt +++ b/fontland/fontland/cff-glyph.rkt @@ -29,9 +29,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/glyph/CFFGlyph.js (define cff (get-table (glyph-font this) 'CFF_)) (define str (vector-ref (hash-ref* cff 'topDict 'CharStrings) (glyph-id this))) (define end (+ (index-item-offset str) (index-item-length str))) - (define stream (if (woff-font? (glyph-font this)) - (get-table-stream (glyph-font this) 'CFF_) - (ttf-font-port (glyph-font this)))) + (define stream (get-table-stream (glyph-font this) 'CFF_)) (pos stream (index-item-offset str)) (define path (Path))