@ -22,7 +22,6 @@ https://github.com/mbutterick/fontkit/blob/master/src/tables/directory.js
(hash-set! this-res 'tables new-tables-val))
(define/override (preEncode this-val stream)
(define tables empty)
(for ([(tag table) (in-hash (· this-val tables))])
(when table
@ -20,4 +20,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/tables/glyf.js
(set-port-position! ip 0)
(define table-bytes (peek-bytes len offset ip))
(define ds (+DecodeStream table-bytes))
(define es (+EncodeStream))
(send glyf encode es empty)
#;(send es dump)
)
@ -97,7 +97,7 @@ https://github.com/mbutterick/fontkit/blob/master/src/subset/TTFSubset.js
'fpgm (send (· this font) _getTable 'fpgm)
)))
(report* stream (send stream dump))
(report* (send stream dump))
(unfinished)
@ -7,7 +7,7 @@ approximates
https://github.com/mbutterick/restructure/blob/master/src/Buffer.coffee
|#
(define-subclass RestructureBase (Buffer [_length #f])
(define-subclass RestructureBase (Buffer [_length #xffff])
(define/override (decode stream [parent #f])
(define len (resolveLength _length stream parent))
(send stream readBuffer len))