diff options
Diffstat (limited to 'Master/texmf-dist/doc/fonts/amiri/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/fonts/amiri/Makefile | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/fonts/amiri/Makefile b/Master/texmf-dist/doc/fonts/amiri/Makefile index afa80524e79..189e7a08afe 100644 --- a/Master/texmf-dist/doc/fonts/amiri/Makefile +++ b/Master/texmf-dist/doc/fonts/amiri/Makefile @@ -1,7 +1,7 @@ .PHONY: all clean ttf web pack check NAME=amiri -VERSION=0.101 +VERSION=0.102 TOOLS=tools SRC=sources @@ -15,8 +15,7 @@ DIST=$(NAME)-$(VERSION) BUILD=$(TOOLS)/build.py RUNTEST=$(TOOLS)/runtest.py FF=python $(BUILD) -MKEOT=ttf2eot -MKWOFF=sfnt2woff +SFNTTOOL=sfnttool SFDS=$(FONTS:%=$(SRC)/%.sfd) DTTF=$(FONTS:%=%.ttf) @@ -37,32 +36,36 @@ ttf: $(DTTF) web: $(WTTF) $(WOFF) $(EOTS) $(CSSS) doc: $(PDFS) -$(WEB)/%.ttf: %.ttf $(BUILD) +$(NAME)-regular.ttf: $(SRC)/$(NAME)-regular.sfd $(SRC)/$(NAME)-regular.fea $(FEAT) $(BUILD) @echo " FF\t$@" - @mkdir -p $(WEB) - @$(FF) --input $< --output $@ --web 1>/dev/null 2>&1 + @$(FF) --input $< --output $@ --version $(VERSION) -%.ttf: $(SRC)/%.sfd $(SRC)/%.fea $(FEAT) $(BUILD) +$(NAME)-slanted.ttf: $(SRC)/$(NAME)-regular.sfd $(SRC)/$(NAME)-regular.fea $(FEAT) $(BUILD) + @echo " FF\t$@" + @$(FF) --input $< --output $@ --version $(VERSION) --slant=7 + +$(NAME)-bold.ttf: $(SRC)/$(NAME)-bold.sfd $(SRC)/$(NAME)-bold.fea $(FEAT) $(BUILD) @echo " FF\t$@" @$(FF) --input $< --output $@ --version $(VERSION) -$(NAME)-slanted.ttf: $(NAME)-regular.ttf $(BUILD) +$(NAME)-boldslanted.ttf: $(SRC)/$(NAME)-bold.sfd $(SRC)/$(NAME)-bold.fea $(FEAT) $(BUILD) @echo " FF\t$@" - @$(FF) --input $< --output $@ --version $(VERSION) --slant=7 1>/dev/null 2>&1 + @$(FF) --input $< --output $@ --version $(VERSION) --slant=7 -$(NAME)-boldslanted.ttf: $(NAME)-bold.ttf $(BUILD) +$(WEB)/%.ttf: %.ttf $(BUILD) @echo " FF\t$@" - @$(FF) --input $< --output $@ --version $(VERSION) --slant=7 1>/dev/null 2>&1 + @mkdir -p $(WEB) + @$(FF) --input $< --output $@ --web 1>/dev/null 2>&1 $(WEB)/%.woff: $(WEB)/%.ttf @echo " FF\t$@" @mkdir -p $(WEB) - @$(MKWOFF) $< + @$(SFNTTOOL) -w $< $@ $(WEB)/%.eot: $(WEB)/%.ttf @echo " FF\t$@" @mkdir -p $(WEB) - @$(MKEOT) $< > $@ + @$(SFNTTOOL) -e -x $< $@ $(WEB)/%.css: $(WTTF) $(BUILD) @echo " GEN\t$@" @@ -72,7 +75,7 @@ $(WEB)/%.css: $(WTTF) $(BUILD) $(DOC)/$(NAME)-table.pdf: $(NAME)-regular.ttf @echo " GEN\t$@" @mkdir -p $(DOC) - @fntsample --exclude-range 0x25A0-0x25FF --font-file $< --output-file $@.tmp --print-outline > $@.txt + @fntsample --font-file $< --output-file $@.tmp --print-outline > $@.txt @pdfoutline $@.tmp $@.txt $@ @rm -f $@.tmp $@.txt |