Skip to content

Commit

Permalink
Stop generating font table
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Sep 29, 2019
1 parent f04fb25 commit 3443434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ FONTS=Regular
UFO=$(FONTS:%=$(BUILDDIR)/$(NAME)-%.ufo)
OTF=$(FONTS:%=$(NAME)-%.otf)
TTF=$(FONTS:%=$(NAME)-%.ttf)
PDF=$(NAME)-Table.pdf
PNG=$(NAME)-Sample.png

export SOURCE_DATE_EPOCH ?= 0
Expand All @@ -41,7 +40,7 @@ all: otf doc
otf: $(OTF)
ttf: $(TTF)
ufo: $(UFO)
doc: $(PDF) $(PNG)
doc: $(PNG)

SHELL=/usr/bin/env bash

Expand Down Expand Up @@ -70,17 +69,6 @@ $(BUILDDIR)/$(NAME)-%.ufo: $(NAME)-%.ufo $(BUILDDIR)/$(LATIN)-%.ufo
@$(PYTHON) $(PREPARE) --version=$(VERSION) --out-file=$@ $< $(word 2,$+)
@$(call update_epoch,$<)

$(PDF): $(NAME)-Regular.otf
@echo " GEN $(@F)"
@fntsample --font-file $< --output-file $@.tmp \
--write-outline --use-pango \
--style="header-font: Noto Sans Bold 12" \
--style="font-name-font: Noto Serif Bold 12" \
--style="table-numbers-font: Noto Sans 10" \
--style="cell-numbers-font:Noto Sans Mono 8"
@mutool clean -d -i -f -a $@.tmp $@
@rm -f $@.tmp

$(PNG): $(NAME)-Regular.otf
@echo " GEN $(@F)"
@hb-view --font-file=$< \
Expand All @@ -90,11 +78,11 @@ $(PNG): $(NAME)-Regular.otf

dist: ttf
@mkdir -p $(NAME)-$(VERSION)/ttf
@cp $(OTF) $(PDF) $(NAME)-$(VERSION)
@cp $(OTF) $(NAME)-$(VERSION)
@cp $(TTF) $(NAME)-$(VERSION)/ttf
@cp OFL.txt $(NAME)-$(VERSION)
@sed -e "/^!\[Sample\].*./d" README.md > $(NAME)-$(VERSION)/README.txt
@zip -r $(NAME)-$(VERSION).zip $(NAME)-$(VERSION)

clean:
@rm -rf $(OTF) $(TTF) $(PDF) $(PNG) $(BUILDDIR) $(NAME)-$(VERSION) $(NAME)-$(VERSION).zip
@rm -rf $(OTF) $(TTF) $(PNG) $(BUILDDIR) $(NAME)-$(VERSION) $(NAME)-$(VERSION).zip
Binary file removed ReemKufi-Table.pdf
Binary file not shown.

0 comments on commit 3443434

Please sign in to comment.