step2
parent
12147506cb
commit
b758ec2723
@ -1,12 +1,13 @@
|
||||
#lang fontkit/racket
|
||||
(provide (all-defined-out))
|
||||
(require (for-syntax racket/string))
|
||||
|
||||
(define-macro (define-table-codecs ID TABLE-ID ...)
|
||||
(with-pattern ([(TABLE-ID-STRING ...) (pattern-case-filter #'(TABLE-ID ...)
|
||||
[STX (datum->syntax caller-stx (format "~a.rkt" (syntax->datum #'STX)))])])
|
||||
[STX (datum->syntax caller-stx (string-replace (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-codecs table-codecs maxp hhea head loca prep fpgm hmtx cvt_ glyf)
|
||||
(define-table-codecs table-codecs maxp hhea head loca prep fpgm hmtx cvt_ glyf OS/2 post)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue