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.
23 lines
460 B
Racket
23 lines
460 B
Racket
8 years ago
|
#lang fontkit/racket
|
||
|
(require restructure)
|
||
|
(provide (all-defined-out))
|
||
|
#|
|
||
|
approximates
|
||
|
https://github.com/mbutterick/fontkit/blob/master/src/tables/hmtx.js
|
||
|
|#
|
||
|
|
||
|
(define-subclass RStruct (Rhmtx))
|
||
|
|
||
|
(define HmtxEntry (make-object RStruct
|
||
|
(dictify
|
||
|
'advance uint16be
|
||
|
'bearing uint16be)))
|
||
|
|
||
|
(define hmtx (make-object Rhmtx
|
||
|
(dictify
|
||
|
'metrics uint16be
|
||
|
'bearing uint16be)))
|
||
|
|
||
|
|
||
|
|