blob: ff2dc70a8723ce9f7f74af985f9ac6401c869b85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
|