1

On Linux, the only print font available is Courier. As the output was not satisfactory to me, a few years ago, I wrote a bash script to workaround this limitation.

This script merely launch Vim with command line options (-c) to create a .ps file, then edit this .ps file to change font (to DejavuSansMono) before sending it to printer via the lp command.

This worked like a charm until very recently (some weeks ?). Now whichever font I change to, I only get some garbage characters on printer.

I could eliminate a printer problem since I could obtain a perfect output from an unused old computer not updated for more than one year.

I could also elimitate Vim, as the .ps output is the same on both computers.

And last, if I use Inkscape to open the .ps file, the file is correctly rendered on screen and also correctly printed.

Now, I am stuck ! Please, can you help ?

My computer is running an uptodate Archlinux/Gnome config.

[EDIT] Found a workaround by inserting the following line

inkscape --export-ps=outfile.ps outfile.ps

before printing outfile.ps with lp

[EDIT2] Bad workaround : only first page is printed !

closed as off-topic by Ingo Karkat, Stephen Rauch, sebasth, G-Man, Satō Katsura Oct 26 '17 at 4:43

  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    I'm voting to close this question as off-topic because not enough information is given to properly reproduce the problem. – Ingo Karkat Oct 25 '17 at 13:45
  • If I understand this question correctly, PostScript files which printed correctly some weeks ago now do not print correctly. (Do you, by any chance, have an old .ps file that you created several weeks ago and that printed correctly at the time? Have you tried printing it now? What was the result?) So the question is really about the printer, and has nothing to do with vim. (And why do we even have a “courier” tag?) Please do not respond in comments; edit your question to make it clearer and more complete. – G-Man Oct 25 '17 at 19:42

Browse other questions tagged or ask your own question.