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

Update ps export to allow text as text objects rather than glyph #102

Open
durack1 opened this issue Apr 30, 2019 · 9 comments
Open

Update ps export to allow text as text objects rather than glyph #102

durack1 opened this issue Apr 30, 2019 · 9 comments
Assignees

Comments

@durack1
Copy link
Member

durack1 commented Apr 30, 2019

Currently the *.ps export does not export text objects as text types, rather these are glyphs which are not recognized by vector image editing software to allow direct text editing.

Please update to allow text objects as text

@durack1
Copy link
Member Author

durack1 commented Apr 30, 2019

It appears the *.pdf does export text as text objects (checked in Illustrator), so we're close

@doutriaux1
Copy link
Collaborator

@scottwittenburg I wonder i it's because of ghostscript?

@doutriaux1
Copy link
Collaborator

doutriaux1 commented Apr 30, 2019

@scottwittenburg the vcs' psotscript dunction has:

    def postscript(self, file, mode='r', orientation=None,
                   width=None, height=None, units='inches', textAsPaths=True):

Did you get rid of textAsPath when switch to contextGL ?

@scottwittenburg
Copy link
Collaborator

@doutriaux1 I suspect what you suggested was true, that it's due to how we have to use ghostscript now in order to support saving a postscript. The only way I think we could support textAsPaths is if there's a command-line option available in ghostscript. Maybe we should remove that argument in that case?

@durack1
Copy link
Member Author

durack1 commented Apr 30, 2019

Folks from memory textAsPaths is exactly what we don't want, as if this is selected the text is converted into glyphs which often bloats out file sizes considerably (as each vector element needs to be defined) rather than just having an ascii character represented in the file (and the screen).

I remember working with @dlonie (who seems to have deleted his github account) on this and note there are a bunch of now old and closed issues buried in other repos
CDAT/cdat#1013
CDAT/cdat#517
CDAT/cdat#1077
CDAT/vcs#47
etc

@scottwittenburg
Copy link
Collaborator

@durack1 Is illustrator something I can use for free?

@scottwittenburg
Copy link
Collaborator

@durack1 Do you know of another tool (besides Illustrator which is not free) I can use to get a better feel for what ghostscript is producing from our pdfs, compared to what we want it to produce?

@durack1
Copy link
Member Author

durack1 commented May 1, 2019

@scottwittenburg
Copy link
Collaborator

Thanks @durack1, will do.

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

No branches or pull requests

3 participants