From: "James P. Ascher" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 41958@debbugs.gnu.org, viniciusjl@ig.com.br
Subject: bug#41958: ps-print-buffer only knows about some fonts for MacOS Preview
Date: Fri, 19 Jun 2020 21:30:06 +0000 [thread overview]
Message-ID: <m0mu53vx41.fsf@slab.space> (raw)
In-Reply-To: <m0mu53vx41.fsf@slab.space>
I use ps-print to produce a PostScript file that I open in MacOS Preview to
double-check before printing. I'd like to be able to use Hack as a font
rather than Courier. Right now, Hack isn't recognized along with other
installed fonts, but I can't tell why some work and some don't.
Following the directions in ps-print.el, I tried to add Hack as
a Courier replacement. I removed the comment and updated this line:
3 cm 20 cm moveto 10/Hack-Regular ReportFontInfo showpage
Opening the resulting PostScript file in Preview.app gives this error:
PostScript Conversion Warning
Converting the PostScript file "temp.ps" produced the following
warnings: "Hack-Regular" not found, using Courier.
Similarly for "Hack" or "Hack-Italic." In trying to debug the problem,
I checked fonts on my laptop at random to see if any worked.
AmericanTypewriter-Light works fine while AmericanTypewriter gives the
same error, even though both are in the same directory and seem to be
otherwise similar. I'll paste the details of those two fonts below, but
I think there must be something in the PostScript generated by ps-print
that doesn't load all the fonts. Pages, for example, generates
a PostScript file with Hack, but it looks remarkably different than what
ps-print generates--so I'm not entirely sure what to compare.
I'm not sure what to do next to debug this: my PostScript knowledge is
minimal. Does anyone have a sense of how to figure this out?
Emacs 26.3
MacOS 10.15.5
ps-print.el 7.3.5
Font details from Font Book:
WORKING as "AmericanTypewriter-Light":
PostScript name AmericanTypewriter-Light
Full name American Typewriter Light
Family American Typewriter
Style Light
Kind TrueType
Language Afrikaans, Albanian, Asturian, Asu, Azerbaijani, Basque, Belarusian, Bemba, Bena, Bosnian, Breton, Bulgarian, Catalan, Chiga, Colognian, Cornish, Croatian, Czech, Danish, Dutch, Embu, English, Esperanto, Estonian, Faroese, Filipino, Finnish, French, Friulian, Galician, Ganda, German, Greek, Gusii, Hawaiian, Hungarian, Icelandic, Igbo, Inari Sami, Indonesian, Irish, Italian, Jola-Fonyi, Kabuverdianu, Kalaallisut, Kalenjin, Kamba, Kazakh, Kikuyu, Kinyarwanda, Lakota, Latvian, Lithuanian, Lower Sorbian, Luo, Luxembourgish, Luyia, Macedonian, Machame, Makhuwa-Meetto, Makonde, Malagasy, Malay, Maltese, Manx, Meru, Meta=CA=BC, Mongolian, Morisyen, North Ndebele, Northern Sami, Norwegian Bokm=C3=A5l, Norwegian Nynorsk, Nyankole, Oromo, Ossetic, Polish, Portuguese, Quechua, Romanian, Romansh, Rombo, Rundi, Russian, Rwa, Samburu, Sango, Sangu, Scottish Gaelic, Sena, Serbian, Shambala, Shona, Slovak, Slovenian, Soga, Somali, Spanish, Swahili, Swedish, Swiss German, Taita, Tajik, Teso, Tongan, Turkish, Turkmen, Ukrainian, Upper Sorbian, Uzbek, Vietnamese, Vunjo, Walser, Welsh, Western Frisian, Yoruba, Zulu
Script Cyrillic, Greek, Latin, Tagalog
Version 13.0d1e4
Location /System/Library/Fonts/Supplemental/AmericanTypewriter.ttc
Unique name American Typewriter Light; 13.0d1e4; 2017-06-07
Copyright Digitized data (c) Copyright 1997 E+F Designstudios. ITC American Typewriter is a registered trademark of International Typeface Corporation.
Trademark ITC American Typewriter is a registered trademark of International Typeface Corporation.
Enabled Yes
Duplicate No
Copy protected No
Glyph count 1,195
GIVES ERROR as "AmericanTypewriter":
PostScript name AmericanTypewriter
Full name American Typewriter
Family American Typewriter
Style Regular
Kind TrueType
Language Afrikaans, Albanian, Asturian, Asu, Azerbaijani, Basque, Belarusian, Bemba, Bena, Bosnian, Breton, Bulgarian, Catalan, Chiga, Colognian, Cornish, Croatian, Czech, Danish, Dutch, Embu, English, Esperanto, Estonian, Faroese, Filipino, Finnish, French, Friulian, Galician, Ganda, German, Greek, Gusii, Hawaiian, Hungarian, Icelandic, Igbo, Inari Sami, Indonesian, Irish, Italian, Jola-Fonyi, Kabuverdianu, Kalaallisut, Kalenjin, Kamba, Kazakh, Kikuyu, Kinyarwanda, Lakota, Latvian, Lithuanian, Lower Sorbian, Luo, Luxembourgish, Luyia, Macedonian, Machame, Makhuwa-Meetto, Makonde, Malagasy, Malay, Maltese, Manx, Meru, Meta=CA=BC, Mongolian, Morisyen, North Ndebele, Northern Sami, Norwegian Bokm=C3=A5l, Norwegian Nynorsk, Nyankole, Oromo, Ossetic, Polish, Portuguese, Quechua, Romanian, Romansh, Rombo, Rundi, Russian, Rwa, Samburu, Sango, Sangu, Scottish Gaelic, Sena, Serbian, Shambala, Snhona, Slovak, Slovenian, Soga, Somali, Spanish, Swahili, Swedish, Swiss German, Taita, Tajik, Teso, Tongan, Turkish, Turkmen, Ukrainian, Upper Sorbian, Uzbek, Vietnamese, Vunjo, Walser, Welsh, Western Frisian, Yoruba, Zulu
Script Cyrillic, Greek, Latin, Tagalog
Version 13.0d1e4
Location /System/Library/Fonts/Supplemental/AmericanTypewriter.ttc
Unique name American Typewriter; 13.0d1e4; 2017-06-07
Copyright Digitized data (c) Copyright 1997 E+F Designstudios. ITC American Typewriter is a registered trademark of International Typeface Corporation.
Trademark ITC American Typewriter is a registered trademark of International Typeface Corporation.
Enabled Yes
Duplicate No
Copy protected No
Glyph count 1,195
Respectfully submitted,
-James
--
James P. Ascher
Doctoral Student, English Department
University of Virginia
next parent reply other threads:[~2020-06-19 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 21:30 James P. Ascher via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-06-20 15:20 ` bug#41958: ps-print-buffer only knows about some fonts for MacOS Preview Mattias Engdegård
2020-06-21 9:22 ` James P. Ascher via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-06-21 9:30 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0mu53vx41.fsf@slab.space \
--to=bug-gnu-emacs@gnu.org \
--cc=41958@debbugs.gnu.org \
--cc=jpsa@protonmail.com \
--cc=viniciusjl@ig.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.