Skip to content

Commit a03fb50

Browse files
committed
Update scripts for fresh gftools and cross-platform mktemp
1 parent e19f63e commit a03fb50

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

script/build_ttf.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ for weight in "${weights[@]}"; do
2525

2626
fontmake -g "${glyphs_file}" -o ttf --output-path "${file}" -i ".* ${weight}"
2727

28-
echo " [i] Fixing DSIG in ${file}"
29-
gftools fix-dsig --autofix "${file}"
30-
3128
echo " [i] TTFautohint ${file}"
3229
ttfautohint --no-info --ignore-restrictions "${file}" "${file}.hinted"
3330
mv "${file}.hinted" "${file}"

script/build_variable.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,23 @@ mkdir -p "${dir}"
1818
rm -rf "${dir:?}/"*
1919

2020
# make a temporary file here to avoid parallel runs from stepping on each other's toes
21-
vf_glyphs=$(mktemp --suffix=".glyphs")
21+
vf_glyphs=$(mktemp)
22+
mv ${vf_glyphs} ${vf_glyphs}.glyphs
23+
vf_glyphs=${vf_glyphs}.glyphs
2224

2325
awk '/name = Retina;/ { print; print "exports = 0;"; next }1' \
2426
"${glyphs_file}" > "${vf_glyphs}"
2527

2628
fontmake -g "${vf_glyphs}" -o variable --output-path "${file}"
2729
rm -f "${vf_glyphs}"
2830

29-
# fix variable font metadata – very important
30-
gftools fix-vf-meta "${file}"
31-
mv "${file}.fix" "${file}"
32-
3331
# other fixes for metadata and hinting
3432
gftools fix-nonhinting "${file}" "${file}.fix"
3533
mv "${file}.fix" "${file}"
3634

3735
gftools fix-gasp --autofix "${file}"
3836
mv "${file}.fix" "${file}"
3937

40-
gftools fix-dsig --autofix "${file}"
41-
4238
# cleanup of temp files
4339
rm -rf "${dir}/"*-gasp.ttf
4440

0 commit comments

Comments
 (0)