how to use a vector

main
Matthew Butterick 6 years ago
parent 04632ba102
commit 2ad1f74661

@ -100,7 +100,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/subset/CFFSubset.js
gsubrs)))
(define (subsetSubrs this subrs used)
(for/list ([(subr i) (in-indexed subrs)])
(for/vector ([(subr i) (in-indexed subrs)])
(cond
[(hash-ref used i #false)
(pos (hash-ref (cff-subset-cff this) 'stream) (hash-ref subr 'offset))

@ -44,5 +44,4 @@ https://github.com/mbutterick/fontkit/blob/master/src/cff/CFFPrivateDict.js
(21 nominalWidthX number 0)
(22 vsindex number 0)
(23 blend ,CFFBlendOp #false)
(19 Subrs ,(CFFPointer (CFFIndex) #:relative-to 'local) ,null))))
;; todo: why can't the subrs default value be `(vector)`?
(19 Subrs ,(CFFPointer (CFFIndex) #:relative-to 'local) ,(vector)))))
Loading…
Cancel
Save