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.
16 lines
484 B
Racket
16 lines
484 B
Racket
#lang racket/base
|
|
(provide (all-defined-out))
|
|
(require (for-syntax racket/base racket/syntax) racket/runtime-path)
|
|
(provide (for-syntax #%datum))
|
|
|
|
(define-syntax (ffd/rp stx)
|
|
(syntax-case stx ()
|
|
[(_ fam file kwargs ...)
|
|
(with-syntax ([rp-name (generate-temporary)])
|
|
#'(begin
|
|
(require racket/runtime-path css-tools/font-face)
|
|
(define-runtime-path rp-name (expand-user-path file))
|
|
(font-face-declaration fam rp-name kwargs ...)))]))
|
|
|
|
|