History

add a FIXME on maxp table to read different versions

Sigrid Solveig Haflínudóttir committed 2 years ago

Commit 3e799de1 parent 1d934b91 file · +11 −7Browse files

Unified · Split

otf.rkt+11−7
@@ -343,16 +343,20 @@ · 342 unmodified lines
343343 {int16 glyphDataFormat unused (= 0)})
344344 #:tag "head")
345345
346−(define record-fields
347− (list (cons 'field
348− (list (~a "void *parsed;") (~a "void (*fprint)(int f, int indent, void *parsed);")))
349− (cons 'fprint
350− (list (~a "if(v->fprint != nil && v->parsed != nil)")
351− (~a "\tv->fprint(f, indent+indentΔ, v->parsed);")))))
346+(mkcmplx TableMaxp
347+ (mkfields {Version16Dot16 version hex (= #x05000 #x10000)}
348+ {uint16 numGlyphs} ; FIXME there are more fields here, depending on the version
349+ )
350+ #:tag "maxp")
352351
353352 (mkcmplx TableRecord
354353 (mkfields {Tag tableTag} {uint32 checksum hex} {Offset32 offset} {uint32 length})
355− #:extra record-fields)
354+ #:extra (list (cons 'field
355+ (list (~a "void *parsed;")
356+ (~a "void (*fprint)(int f, int indent, void *parsed);")))
357+ (cons 'fprint
358+ (list (~a "if(v->fprint != nil && v->parsed != nil)")
359+ (~a "\tv->fprint(f, indent+indentΔ, v->parsed);")))))
356360
357361 (define c-friendly-name identity)
358362

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t