summaryrefslogtreecommitdiff
path: root/fonts/gentium-tug/source/type1/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/gentium-tug/source/type1/Makefile
Initial commit
Diffstat (limited to 'fonts/gentium-tug/source/type1/Makefile')
-rw-r--r--fonts/gentium-tug/source/type1/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/fonts/gentium-tug/source/type1/Makefile b/fonts/gentium-tug/source/type1/Makefile
new file mode 100644
index 0000000000..d432621ee9
--- /dev/null
+++ b/fonts/gentium-tug/source/type1/Makefile
@@ -0,0 +1,45 @@
+# This file is part of the Gentium package for TeX.
+# It is licensed under the Expat License, see doc//README for details.
+#
+# The build scripts for Type 1 fonts need some afm files already
+# available. If new TTF files are released, it is best to keep the
+# old Type 1 fonts, copy the new TTF files and run the scripts.
+#
+# Currently, the scripts first make additional kerning pairs from
+# the existing afm files and then convert the fonts to Type 1 format
+# using these additional kerning pairs. That means that you may need to
+# run "make" twice to get stable result if you change some metrics in the
+# script ff-gentium.pe. For example if you change the kern value for the
+# pair DV, then the first run will change the value just for this pair and
+# the second run will change the values also for all the derived pairs
+# (accented letters, small caps).
+
+AFM_PATH='../../../../fonts/afm/public/gentium-tug'
+PFB_PATH='../../../../fonts/type1/public/gentium-tug'
+
+all: kerns
+ ./ff-gentium.pe GentiumPlus-R.ttf GentiumPlus-I.ttf \
+ GenBasB.ttf GenBasBI.ttf
+ # Change the creator to "TeX Users Group"
+ for I in *.pfb; do \
+ t1disasm $$I | sed 's/%%Creator: .*/%%Creator: TeX Users Group/' \
+ > gentium.disasm; \
+ t1asm gentium.disasm $$I; \
+ done
+ for I in *.afm; do ./afmcreator.py $$I; done
+ rm *-extra.afm
+ rm *.otf *.sfd
+ rm gentium.disasm
+ mv -f *.afm $(AFM_PATH)
+ mv -f *.pfb $(PFB_PATH)
+
+# Generate extra kerning pairs (and keep them).
+kerns:
+ ./generate-extra-kerns.sh
+
+# Run the generated Type 1 fonts through t1lint. When there is
+# no error message, then the fonts are probably Ok.
+test:
+ for I in $(PFB_PATH)/*.pfb; do \
+ t1lint $$I; \
+ done