I'm customizing Emacs to print to PostScript with custom faces. I've found this reference, which explains how to add Helvetica. To emacs ps-print.
I'm trying to use Consolas, so I used the following code:
;; Add Consolas to supported printing fonts.
(require 'ps-print)
(setq ps-font-info-database
(append
'((Consolas
(fonts (normal . "Consolas")
(bold . "Consolas-Bold")
(italic . "Consolas-Italic")
(bold-italic . "Consolas-BoldItalic"))
(size . 10.0)
(line-height . 10.48)
(space-width . 5.51719)
(avg-char-width . 5.51719)))
ps-font-info-database))
The document prints without errors, but it uses default fonts instead of Consolas. When I the convert the PostScript document to PDF, and then copy text from the PDF file to OpenOffice, I do get Consolas, but in the PDF the text displays as something like Courier.
Which names should I use? Is Consolas-bold wrong? I couldn't find anything on the web about this problem.