File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff 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} "
Original file line number Diff line number Diff line change @@ -18,27 +18,23 @@ mkdir -p "${dir}"
1818rm -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
2325awk ' /name = Retina;/ { print; print "exports = 0;"; next }1' \
2426 " ${glyphs_file} " > " ${vf_glyphs} "
2527
2628fontmake -g " ${vf_glyphs} " -o variable --output-path " ${file} "
2729rm -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
3432gftools fix-nonhinting " ${file} " " ${file} .fix"
3533mv " ${file} .fix" " ${file} "
3634
3735gftools fix-gasp --autofix " ${file} "
3836mv " ${file} .fix" " ${file} "
3937
40- gftools fix-dsig --autofix " ${file} "
41-
4238# cleanup of temp files
4339rm -rf " ${dir} /" * -gasp.ttf
4440
You can’t perform that action at this time.
0 commit comments