Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support EPS (encapsulated postscript) output #178

Open
autumnull opened this issue Nov 30, 2022 · 4 comments
Open

Support EPS (encapsulated postscript) output #178

autumnull opened this issue Nov 30, 2022 · 4 comments
Assignees

Comments

@autumnull
Copy link

autumnull commented Nov 30, 2022

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.

@llgcode
Copy link
Owner

llgcode commented Dec 2, 2022

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?

@autumnull
Copy link
Author

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.

@llgcode
Copy link
Owner

llgcode commented Dec 3, 2022

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 llgcode self-assigned this Dec 3, 2022
@autumnull
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants