Le Sun, Jan 30, 2022 at 08:44:05AM -0500, ibrahim via 9fans a écrit : > On Sunday, 30 January 2022, at 8:55 AM, tlaronde wrote: > > The lacking piece is the end: converting DVI to something else than PS > and extending DVI to include drawing primitives so that there is a > "MetaPost" generating DVI (Metadraw). The other points are already > addressed. > > Perhaps xdvi is a good start point to understand how to convert dvi to raw > images. dvi isn't a ready to display format you have to prepare the missing > glyphs (fonts). Knuth has provided a converter to make dvi files human > readable and you task is to interpret this output. If you take a viewer as a > start point you could store the fineshed rendering in a file instead of > saving that. Like ps dvi is also a virtual machine code but much simpler.
There is nothing difficult in the task per se. But when adding a new block of DVI commands, it has to be done with some care. METAFONT is also a rasterizer, so the fundamental bits are already there to obtain a rasterized image. But there are, too, converters to develop to translate the glyphes shapes of alien fonts in something METAFONT can understand---TeX only uses the metrics informations, it doesn't care about what is drawn in the boxes, this is why one can use easily PS fonts with TeX; rendering, when what has to be drawn is involved, is another story... And xdvi is the perfect example of the problem: it has a myriad of dependencies. -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ http://www.sbfa.fr/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T3e07bfdf263a83c8-M9cd64826342f6b91f491f65f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription