draw2d icon indicating copy to clipboard operation
draw2d copied to clipboard

Support EPS (encapsulated postscript) output

Open autumnull opened this issue 2 years ago • 4 comments

It would likely not be much more effort given that pdf output is already supported.

Even just regular postscript output would be very useful and even simpler.

autumnull avatar Nov 30 '22 18:11 autumnull

Hello, I agree.

In fact, there's a postscript parser that uses draw2d https://github.com/llgcode/ps It would be consistent to have the reader and the writer.

What is your use case? Who uses postscript today? Is it really useful?

llgcode avatar Dec 02 '22 08:12 llgcode

My specific use case is writing a program that needs to produce EPS output so that it can be used by fontforge during tracing of bitmap glyphs.

Postscript is used in various PDF-generating systems, like e.g. LaTeX. It's very a very common page description format for things that intend to be printed at some point, as opposed to SVG which is designed more for web use.

In general though, EPS files tend to be more commonly used than raw postscript, since they can be embedded in PDFs and are just a general-purpose vector graphics format, probably the second most common general-purpose vector format besides SVG, in my experience. As for who uses it, Donald Knuth has a collection of EPS files on his website here.

autumnull avatar Dec 02 '22 13:12 autumnull

Ok, do you a sample draw2d code that may suit your need. I can use my own sample but it will be better to have realistic sample for your need

llgcode avatar Dec 03 '22 11:12 llgcode

i don't really know how to produce sample code for this because the feature doesn't exist yet :) i would suggest using your own sample code instead.

autumnull avatar Dec 05 '22 00:12 autumnull