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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
vpath %.ufo src
include version.mk
# Use this file if you'd rather not use the Abobe FDK (now open source!)
# to generate OT features. I prefer it because I have a bit more confidence
# in it than in FF. But honestly, I haven't noticed any functional difference.
define generate_font
which ttx > /dev/null ; \
if [ $$? -eq 0 ] ; then \
echo "Adding dummy DSIG table" ; \
ttx -d . -o $(1)-dsig.ttf -m $(1).ttf util/dsig.ttx ; \
else \
echo "Required program ttx (FontTools) not installed!" ; \
exit 1; \
fi ; \
which ttfautohint > /dev/null ; \
if [ $$? -eq 0 ] ; then \
echo "Running ttfautohint to make hinted font $(2).ttf" ; \
ttfautohint -f latn --hinting-range-min=20 --hinting-range-max=150 \
-v $(1)-dsig.ttf $(2).ttf ; \
else \
echo "$(2).ttf will be unhinted - ttfautohint not installed!" ; \
mv $(1)-dsig.ttf $(2).ttf ; \
fi ; \
rm -f $(1).ttf $(1)-dsig.ttf $(1)-tmp.ttf
endef
all : regular bold italic bolditalic greek
regular : Junicode.ttf
bold : Junicode-Bold.ttf
italic : Junicode-Italic.ttf
bolditalic : Junicode-BoldItalic.ttf
greek : FoulisGreek.ttf
Junicode.ttf : jr.ttf
$(call generate_font,jr,Junicode)
jr.ttf : src/Junicode.ufo
python3 util/simplegen.py src/Junicode.ufo jr.ttf ;
Junicode-Bold.ttf : jb.ttf
$(call generate_font,jb,Junicode-Bold)
jb.ttf : src/Junicode-Bold.ufo
python3 util/simplegen.py src/Junicode-Bold.ufo jb.ttf ;
Junicode-Italic.ttf : ji.ttf
$(call generate_font,ji,Junicode-Italic)
ji.ttf: src/Junicode-Italic.ufo
python3 util/simplegen.py src/Junicode-Italic.ufo ji.ttf ;
Junicode-BoldItalic.ttf : jbi.ttf
$(call generate_font,jbi,Junicode-BoldItalic)
jbi.ttf : src/Junicode-BoldItalic.ufo
python3 util/simplegen.py src/Junicode-BoldItalic.ufo jbi.ttf ;
FoulisGreek.ttf : fg.ttf
$(call generate_font,fg,FoulisGreek)
fg.ttf : src/FoulisGreek.ufo
python3 util/simplegen.py src/FoulisGreek.ufo fg.ttf ;
clean :
rm -f *.ttf ; rm -f *.woff
dist :
zip -r junicode-$(VERSION).zip *.ttf doc/*.pdf
|