Re: About the font used by 'ps-spool-buffer-with-faces'

Angelo Graziosi <[email protected]> Tue, 24 Dec 2024 09:51:19 +0100
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>

Il 24/12/2024 08:02, Joel Reicher ha scritto:
> Angelo Graziosi <[email protected]> writes:
> 
>> Suppose I set as default font (Options - Set Default Font) "Lucida 
>> console". The buffers are rendered in this new font. Then I do
>>
>>   M-x ps-spool-buffer-with-faces
>>
>> for the current buffer and save the Postscript buffer in a file, say 
>> foo.ps. Finally I convert this Postscript in PDF (ps2pdf).
>>
>> The PDF is not rendere with Lucida console but, if I read corectly, 
>> with Courier New.
>>
>> Is this to be expected. How can I have a PDF with the font I have set 
>> as default in Emacs?
> 
> How does the PS display? It's possible the problem is introduced by ps2pdf.

No, I just discovered that 'ps-font-family' is 'Courier', and it seems 
that things cannot change much. See for example:

https://www.gnu.org/software//emacs/manual/html_node/emacs/PostScript-Variables.html