medley icon indicating copy to clipboard operation
medley copied to clipboard

HPRINT can't dump font

Open masinter opened this issue 4 years ago • 3 comments

HPRINT can't dump a Font because the FONTCHARSETVECTOR is an untyped ARRAYBLOCK. Probably EQUALALL AND COPYALL need review too.

Originally posted by @masinter in https://github.com/Interlisp/medley/issues/506#issuecomment-945195253

masinter avatar Oct 17 '21 21:10 masinter

There is really old code in HPRINT1. There are RESETLIST and RESETFORMs that are deangerouls when running with breakpoints since they affect global state rather than per-process free variables.
For some good reason I'm sure, the FONTDESCRIPTOR record has an arrayblock FONTCHARSETVECTOR which is a raw arrayblock with no type number or name. INSPECT/TYPELESS is how it none-the-less is able to INSPECT an arrayblock but I'm less certain about writing it out so it can be read back in again. Maybe fixing COPYALL and EQUALALL first? Add another category in HPRINTRDTBL?

masinter avatar Oct 24 '21 20:10 masinter

#484 covers this

masinter avatar Oct 24 '21 21:10 masinter

Hprint fails now (HPRINT CLISPARRAY T) so reopening this for reexamination

masinter avatar Jul 29 '22 17:07 masinter