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