On Fri Aug 27, 2021 at 15:28 CET, 'Sebastien Binet' via golang-nuts wrote: > hi there, > > I am working on providing a pure-Go TeX engine. > to achieve such a thing, I'd need to be able to decode and use the > so-called "PacKed font file" format (PK fonts). > (I know it's a very old & deprecated file format, but I figured it would > be easier on me to start "old tech" first) > > I think I managed to properly decode it, and managed to extract the > bitmap data of each glyph: > > - https://play.golang.org/p/dA8cev_x4TQ
FYI, star-tex can now convert some DVI files into PNG files, using PK file fonts. as star-tex doesn't know how to rescale PK fonts (this involves support for MetaFont: not sure it's worth the complexity), it must be instructed to generate a PNG file with the "correct" DPI (one that matches that of the PK font). but apart from that, it works. - https://git.sr.ht/~sbinet/star-tex/tree/main/item/cmd/dvi-cnv/testdata/hello_golden.png - https://git.sr.ht/~sbinet/star-tex/tree/main/item/cmd/dvi-cnv/testdata/xcolor_golden.png now working on handling Type-1 fonts so star-tex can generate PNGs at "any" resolution. -s -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CE9QUKP08AE1.3C3FYZZV8HZIW%40clrinfopc42.