Re: About the font used by 'ps-spool-buffer-with-faces'
Joel Reicher <[email protected]> Thu, 26 Dec 2024 12:55:00 +1100
| Newsgroups | gmane.emacs.windows |
|---|---|
| Message-ID | <[email protected]> |
Angelo Graziosi <[email protected]> writes: > 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)=20 >>> "Lucida console". The buffers are rendered in this new=20 >>> font. Then I do >>> >>> =C2=A0 M-x ps-spool-buffer-with-faces >>> >>> for the current buffer and save the Postscript buffer in a=20 >>> file, say foo.ps. Finally I convert this Postscript in PDF=20 >>> (ps2pdf). >>> >>> The PDF is not rendere with Lucida console but, if I read=20 >>> corectly, with Courier New. >>> >>> Is this to be expected. How can I have a PDF with the font I=20 >>> have set as default in Emacs? >> How does the PS display? It's possible the problem is=20 >> introduced by ps2pdf. > > No, I just discovered that 'ps-font-family' is 'Courier', and it=20 > seems that things cannot change much. See for example: > > https://www.gnu.org/software//emacs/manual/html_node/emacs/PostScript-Var= iables.html "Legitimate values include =E2=80=98Courier=E2=80=99, =E2=80=98Helvetica=E2= =80=99,=20 =E2=80=98NewCenturySchlbk=E2=80=99, =E2=80=98Palatino=E2=80=99 and =E2=80= =98Times=E2=80=99." Wow. So basically `ps-spool-buffer-with-faces' does not quite do=20 what is says on the tin? Perhaps the documentation should be modified? Regards, - Joel