Skip to content

Commit

Permalink
Add own mark feature writer
Browse files Browse the repository at this point in the history
Copied from ufo2ft commit 3fe4446ec60231baf5bc5f9992bf99feb0be2f92, as
later ones are broken: googlefonts/ufo2ft#303

This allows us to use the latest fontmake again.
  • Loading branch information
khaledhosny committed May 6, 2019
1 parent 3a26437 commit 9d2c70e
Show file tree
Hide file tree
Showing 5 changed files with 390 additions and 6 deletions.
10 changes: 7 additions & 3 deletions Makefile
Expand Up @@ -24,10 +24,14 @@ export SOURCE_DATE_EPOCH ?= 0

define generate_fonts
mkdir -p $(BUILDDIR)
pushd $(BUILDDIR) 1>/dev/null; \
pushd $(BUILDDIR) 1>/dev/null; \
PYTHONPATH=$(3):${PYTHONMATH} \
fontmake --ufo $(abspath $(2)) \
--output $(1) \
--verbose WARNING \
--feature-writer KernFeatureWriter \
--feature-writer markFeatureWriter::MarkFeatureWriter \
--production-names \
; \
popd 1>/dev/null
endef
Expand All @@ -51,11 +55,11 @@ $(NAME)-%.ttf: $(BUILDDIR)/master_ttf/$(NAME)-%.ttf

$(BUILDDIR)/master_otf/$(NAME)-%.otf: $(UFO)
@echo " MAKE $(@F)"
@$(call generate_fonts,otf,$<)
@$(call generate_fonts,otf,$<,$(abspath $(TOOLDIR)))

$(BUILDDIR)/master_ttf/$(NAME)-%.ttf: $(UFO)
@echo " MAKE $(@F)"
@$(call generate_fonts,ttf,$<)
@$(call generate_fonts,ttf,$<,$(abspath $(TOOLDIR)))

$(BUILDDIR)/$(LATIN)-%.ufo: $(LATIN).glyphs
@echo " GEN $(@F)"
Expand Down
Binary file modified ReemKufi-Regular.otf
Binary file not shown.
Binary file modified ReemKufi-Table.pdf
Binary file not shown.
4 changes: 1 addition & 3 deletions requirements.txt
@@ -1,3 +1 @@
fontmake==1.4.0
ufo2ft==1.1.0
fonttools[ufo]
fontmake

0 comments on commit 9d2c70e

Please sign in to comment.