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
343 {int16 glyphDataFormat unused (= 0)})343 {int16 glyphDataFormat unused (= 0)})
344 #:tag "head")344 #:tag "head")
345 345
346(define record-fields346(mkcmplx TableMaxp
347 (list (cons 'field347 (mkfields {Version16Dot16 version hex (= #x05000 #x10000)}
348 (list (~a "void *parsed;") (~a "void (*fprint)(int f, int indent, void *parsed);")))348 {uint16 numGlyphs} ; FIXME there are more fields here, depending on the version
349 (cons 'fprint349 )
350 (list (~a "if(v->fprint != nil && v->parsed != nil)")350 #:tag "maxp")
351 (~a "\tv->fprint(f, indent+indentΔ, v->parsed);")))))
352 351
353(mkcmplx TableRecord352(mkcmplx TableRecord
354 (mkfields {Tag tableTag} {uint32 checksum hex} {Offset32 offset} {uint32 length})353 (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);")))))
356 360
357(define c-friendly-name identity)361(define c-friendly-name identity)
358 362

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