You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
646 B
Racket
12 lines
646 B
Racket
#lang fontkit/racket
|
|
(provide (all-defined-out))
|
|
|
|
(define-macro (define-table-decoders ID TABLE-ID ...)
|
|
(with-pattern ([(TABLE-ID-STRING ...) (pattern-case-filter #'(TABLE-ID ...)
|
|
[STX (datum->syntax caller-stx (format "~a.rkt" (syntax->datum #'STX)))])])
|
|
#'(begin
|
|
(r+p TABLE-ID-STRING ...)
|
|
(test-module (require (submod TABLE-ID-STRING test) ...))
|
|
(define ID (make-hasheq (map cons (list 'TABLE-ID ...) (list TABLE-ID ...)))))))
|
|
|
|
(define-table-decoders table-codecs maxp hhea head loca prep fpgm hmtx cvt glyf) |