summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-06-03 00:51:03 -0500
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-06-03 04:01:12 -0500
commitbf25f7ebf35c9ab384455edb1612494b4af46817 (patch)
treef74d475ac7fe0259b8a74fddf5f84c63a8f7143a /font
parentafa7128d7b939ca5c8cd082f2547f42e4e563674 (diff)
downloadgroff-git-bf25f7ebf35c9ab384455edb1612494b4af46817.tar.gz
[build]: Add Automake `HAVE_URW_FONTS` condition.
* configure.ac: Add `AM_CONDITIONAL`: `HAVE_URW_FONTS`, so our Automake files can more easily cope with their absence. * contrib/mom/mom.am (MOMPROCESSEDEXAMPLEFILES): Include "typesetting.pdf" only if `HAVE_URW_FONTS`, since the document demands them. * font/devpdf/Foundry.in: Add easily matched phrases to comments, to clearly delimit the URW foundry portion of the file so it can be omitted if those fonts are absent. * font/devpdf/devpdf.am (font/devpdf/Foundry): Generate file differently depending on `HAVE_URW_FONTS`; keep the existing procedure if true, and delete the URW section from the generated file otherwise, avoiding diagnostic messages from afmtodit(1) and our BuildFoundries script. Also update comments in Foundry.in file to be more helpful.
Diffstat (limited to 'font')
-rw-r--r--font/devpdf/Foundry.in32
-rw-r--r--font/devpdf/devpdf.am7
2 files changed, 26 insertions, 13 deletions
diff --git a/font/devpdf/Foundry.in b/font/devpdf/Foundry.in
index ab364150e..beab42210 100644
--- a/font/devpdf/Foundry.in
+++ b/font/devpdf/Foundry.in
@@ -10,21 +10,26 @@
# Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
-# groff is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#=====================================================================
-#Foundry|Name|Searchpath
+#=======================================================================
+#Foundry|Name|Search path
foundry||(gs)
-# These are just copies of the grops fonts so MUST not have any flags etc set
+# Enable the font description files for grops (generated from Adobe
+# foundry font files) to be used with gropdf. afmtodit must not be
+# called with any flags. URW fonts are substituted for Adobe fonts in
+# the download file by default. If you have Adobe Type 1 fonts, you can
+# update the foundry search path above if necessary and replace the
+# contents of the file fields below with their file names.
-#Font|IsBase14|Flags|Map|Encoding|File(!file...)
+#Font|IsBase14|Flags|Map|Encoding|File(!file)...
AB|N||||URWGothic-Demi.t1!URWGothic-Demi!URWGothicL-Demi!a010015l.pfb
ABI|N||||URWGothic-DemiOblique.t1!URWGothic-DemiOblique!URWGothicL-DemiObli!a010035l.pfb
AI|N||||URWGothic-BookOblique.t1!URWGothic-BookOblique!URWGothicL-BookObli!a010033l.pfb
@@ -62,18 +67,21 @@ ZCMI|N||||Z003-MediumItalic.t1!Z003-MediumItalic!URWChanceryL-MediItal!z003034l.
ZD|Y||||D050000L!D050000L.t1!Dingbats!d050000l.pfb
EURO|N||||*../devps/freeeuro.pfa
-#======================================================================
+# BEGIN URW ============================================================
-#Foundry|Name|Searchpath
-foundry|U|(gs):@urwfontsdir@ :/usr/share/fonts/type1/gsfonts :/opt/local/share/fonts/urw-fonts # the URW fonts delivered with ghostscript (may be different)
-#Define Flags for afmtodit
+# URW fonts are typically shipped with Ghostscript, but can be replaced.
+
+#Foundry|Name|Search path
+foundry|U|(gs):@urwfontsdir@:/usr/share/fonts/type1/gsfonts:/opt/local/share/fonts/urw-fonts
+
+# Define flags for afmtodit.
r=-i 0 -m
i=-i 50
n=-n
s=-s
-#Font|IsBase14|Flags|Map|Encoding|File(!file...)
+#Font|IsBase14|Flags|Map|Encoding|File(!file)...
AB|N|r|textmap|text.enc|URWGothic-Demi.t1!URWGothic-Demi!URWGothicL-Demi!a010015l.pfb
ABI|N|i|textmap|text.enc|URWGothic-DemiOblique.t1!URWGothic-DemiOblique!URWGothicL-DemiObli!a010035l.pfb
AI|N|i|textmap|text.enc|URWGothic-BookOblique.t1!URWGothic-BookOblique!URWGothicL-BookObli!a010033l.pfb
@@ -110,4 +118,4 @@ TR|N|r|textmap|text.enc|NimbusRoman-Regular.t1!NimbusRoman-Regular!NimbusRomNo9L
ZCMI|N|i|textmap|text.enc|Z003-MediumItalic.t1!Z003-MediumItalic!URWChanceryL-MediItal!z003034l.pfb
ZD|N|sr|dingbats.map||D050000L!D050000L.t1!Dingbats!d050000l.pfb
-#======================================================================
+# END URW ==============================================================
diff --git a/font/devpdf/devpdf.am b/font/devpdf/devpdf.am
index fbc656fc5..363d4cdd0 100644
--- a/font/devpdf/devpdf.am
+++ b/font/devpdf/devpdf.am
@@ -101,8 +101,13 @@ font/devpdf/DESC: $(devpdf_srcdir)/DESC.in
font/devpdf/Foundry: $(devpdf_srcdir)/Foundry.in
$(AM_V_at)$(MKDIR_P) $(top_builddir)/font/devpdf/
+if HAVE_URW_FONTS
$(AM_V_GEN)sed "s|[@]urwfontsdir[@]|$(urwfontsdir)|" \
- $(devpdf_srcdir)/Foundry.in >$@
+ $(devpdf_srcdir)/Foundry.in >$@
+else
+ $(AM_V_GEN)sed "/BEGIN URW/,/END URW/d" \
+ $(devpdf_srcdir)/Foundry.in >$@
+endif
font/devpdf/download: $(DEVPDFFONTMAP_1) $(DEVPDFFONTMAP_2) \
font/devpdf/DESC font/devpdf/Foundry font/devpdf/enc/text.enc \