main
Matthew Butterick 4 years ago
parent d98170793e
commit 761e7c99be

@ -6,6 +6,7 @@
"glyphrun.rkt" "glyphrun.rkt"
"directory.rkt" "directory.rkt"
"woff-directory.rkt" "woff-directory.rkt"
"woff2-directory.rkt"
"struct.rkt" "struct.rkt"
"table-stream.rkt" "table-stream.rkt"
"font-path.rkt" "font-path.rkt"
@ -92,6 +93,18 @@ https://github.com/mbutterick/fontkit/blob/master/src/WOFFFont.js
#:probe (list #"wOFF") #:probe (list #"wOFF")
#:constructor woff-font)) #:constructor woff-font))
#|
approximates
https://github.com/mbutterick/fontkit/blob/master/src/WOFF2Font.js
|#
(define (+woff2-font port)
(+ttf-font port
#:directory woff2-directory
#:probe (list #"wOF2")
#:constructor woff-font))
;; 181228: disk-based caching (either with sqlite or `with-cache`) is a loser ;; 181228: disk-based caching (either with sqlite or `with-cache`) is a loser
;; reads & writes aren't worth it vs. recomputing ;; reads & writes aren't worth it vs. recomputing
;; (though this is good news, as it avoids massive disk caches hanging around) ;; (though this is good news, as it avoids massive disk caches hanging around)

Loading…
Cancel
Save