summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-11-11 15:34:56 -0600
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-11-12 13:17:16 -0600
commit83004cbf0c8e30bd700f9ef246629ab77de96a7c (patch)
treed9e0775bec31a232e59314779e59c67c21ce0e78 /font
parentcc52751acfd3ad7957db714de93475716c3b222c (diff)
downloadgroff-git-83004cbf0c8e30bd700f9ef246629ab77de96a7c.tar.gz
[build]: Refactor handling of PDF FreeEuro font.
[build]: Refactor handling of FreeEuro font for PDF device. * font/devpdf/Foundry.in: Drop "EURO" entry from file. * font/devpdf/devpdf.am (font/devpdf/download): Add it here. * font/devpdf/util/BuildFoundries.pl: Add list `base35Fonts` to store the groff font names of the PostScript Level 2 base fonts. (LoadFoundry): ...so that we copy their descriptions (and _only_ these) from the `ps` device's font description directory. * doc/doc.am (doc/groff-man-pages.pdf): Declare dependency on "freeeuro.pfa" file in `pdf` device's font description directory.
Diffstat (limited to 'font')
-rw-r--r--font/devpdf/Foundry.in1
-rw-r--r--font/devpdf/devpdf.am1
-rw-r--r--font/devpdf/util/BuildFoundries.pl12
3 files changed, 11 insertions, 3 deletions
diff --git a/font/devpdf/Foundry.in b/font/devpdf/Foundry.in
index 633a0a58d..67a91555a 100644
--- a/font/devpdf/Foundry.in
+++ b/font/devpdf/Foundry.in
@@ -65,7 +65,6 @@ TI|Y||||NimbusRoman-Italic.t1!NimbusRoman-Italic!NimbusRomNo9L-ReguItal!n021023l
TR|Y||||NimbusRoman-Regular.t1!NimbusRoman-Regular!NimbusRomNo9L-Regu!n021003l.pfb
ZCMI|N||||Z003-MediumItalic.t1!Z003-MediumItalic!URWChanceryL-MediItal!z003034l.pfb
ZD|Y||||D050000L!D050000L.t1!Dingbats!d050000l.pfb
-EURO|N||||*../devps/freeeuro.pfa
# BEGIN URW ============================================================
diff --git a/font/devpdf/devpdf.am b/font/devpdf/devpdf.am
index 0114d15e0..0b2b39c33 100644
--- a/font/devpdf/devpdf.am
+++ b/font/devpdf/devpdf.am
@@ -214,6 +214,7 @@ font/devpdf/download: $(devpdffontmapdata) font/devpdf/DESC \
--strict $(abs_top_builddir)/font/devpdf \
'$(abs_top_srcdir)/font/devps:$(abs_top_builddir)/font/devps' \
>>$@.tmp \
+ && printf "\tFreeEuro\tfreeeuro.pfa\n" >>$@.tmp \
&& mv $@.tmp $@
# PDFs to be produced by troff should depend on this stamp file to
diff --git a/font/devpdf/util/BuildFoundries.pl b/font/devpdf/util/BuildFoundries.pl
index 1e7c416cb..cdc8573c0 100644
--- a/font/devpdf/util/BuildFoundries.pl
+++ b/font/devpdf/util/BuildFoundries.pl
@@ -45,6 +45,15 @@ my $lct=0;
my $foundry=''; # the default foundry
my $notFoundFont=0;
+# We hard-code the PostScript Level 2 base 35 fonts because we don't
+# want to copy any others from the devps font directory to devpdf's.
+my @base35Fonts = (
+ "AB", "ABI", "AI", "AR", "BMB", "BMBI", "BMI", "BMR", "CB", "CBI",
+ "CI", "CR", "HB", "HBI", "HI", "HNB", "HNBI", "HNI", "HNR", "HR",
+ "NB", "NBI", "NI", "NR", "PB", "PBI", "PI", "PR", "S", "TB", "TBI",
+ "TI", "TR", "ZCMI", "ZD",
+);
+
if ($check)
{
CheckFoundry("Foundry.in");
@@ -115,7 +124,7 @@ sub LoadFoundry
my $gfont=($foundry eq '')?$r[0]:"$foundry-$r[0]";
- if ($r[2] eq '')
+ if ($r[2] eq '' && grep /^$r[0]$/, @base35Fonts)
{
# Don't run afmtodit; just copy the groff font
# description file for grops.
@@ -142,7 +151,6 @@ sub LoadFoundry
}
}
Notice("copied grops font $gfont") if $gotf;
-
}
else
{