From 761e7c99be9b331a71e7dea06007f7d01b20ca96 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sun, 22 Nov 2020 10:00:43 -0800 Subject: [PATCH] stub --- fontland/fontland/font.rkt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fontland/fontland/font.rkt b/fontland/fontland/font.rkt index da6ed641..d85537f5 100644 --- a/fontland/fontland/font.rkt +++ b/fontland/fontland/font.rkt @@ -6,6 +6,7 @@ "glyphrun.rkt" "directory.rkt" "woff-directory.rkt" + "woff2-directory.rkt" "struct.rkt" "table-stream.rkt" "font-path.rkt" @@ -92,6 +93,18 @@ https://github.com/mbutterick/fontkit/blob/master/src/WOFFFont.js #:probe (list #"wOFF") #: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 ;; reads & writes aren't worth it vs. recomputing ;; (though this is good news, as it avoids massive disk caches hanging around)