servo / pathfinder

A fast, practical GPU rasterizer for fonts and vector graphics
Apache License 2.0
3.61k stars 204 forks source link

PostScript backend #200

Open pcwalton opened 5 years ago

pcwalton commented 5 years ago

It would be nice to have a PostScript backend, so that you can construct Pathfinder scenes and then print them. (This has potential Firefox applications.)

s3bk commented 5 years ago

Why PostScript as opposed to PDF?

pcwalton commented 5 years ago

Because as I understand it printers take PostScript.

s3bk commented 5 years ago

I wrote a small PS exporter. I wonder if the exporters should be moved into their own crate and be added via SceneExt traits?

pcwalton commented 5 years ago

I think that would be a good idea, yeah.

On Mon, Jun 24, 2019, 12:59 PM s3bk notifications@github.com wrote:

I wrote a small PS exporter https://github.com/s3bk/pathfinder/blob/ps_export/renderer/src/scene.rs#L202 . I wonder if the exporters should be moved into their own crate and be added via SceneExt traits?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/servo/pathfinder/issues/200?email_source=notifications&email_token=AABGRSNFMCHMW26LTQJXCOLP4ERRNA5CNFSM4H2T42Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYOBLCI#issuecomment-505157001, or mute the thread https://github.com/notifications/unsubscribe-auth/AABGRSI4BTAIBGUU2ZQL6Q3P4ERRNANCNFSM4H2T42YQ .

s3bk commented 5 years ago

SceneProxy depends on SVG export (and ideally it should also allow PDF and PS). This causes a cyclic crate dependency between renderer and export (the new crate with SVG, PDF and PS export).

pcwalton commented 5 years ago

Yeah, we can just get rid of the SceneProxy Debug implementation.