From 1d2bd3316c3dbc66632057c7052925228f4a983c Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Sat, 16 May 2015 13:45:08 -0700 Subject: Add make target to build Android fonts from hinted fonts. The change is temporary, while we confirm the quality of our new build toolchain. The target should go away once we switch completely to the new toolchain. This also removes the code that removed tab and unassigned characters from the Android target, since the tab now has the same width as space and the unassigned characters are no longer in the fonts. --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e485e34..66343db 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,22 @@ android: rm $$touched $$subsetted; \ done +# TODO: remove this build target once we are comfortable with the quality of +# the new toolchain +android-from-hinted: + mkdir -p out/android + for source in hinted/*.ttf; do \ + unhinted=$$(mktemp); \ + touched=$$(mktemp); \ + subsetted=$$(mktemp); \ + final=out/android/$$(basename $$source); \ + python $$HOME/noto/nototools/drop_hints.py $$source $$unhinted && \ + python scripts/touchup_for_android.py $$unhinted $$touched && \ + python $$HOME/noto/nototools/subset.py $$touched $$subsetted && \ + python scripts/force_yminmax.py $$subsetted $$final && \ + rm $$touched $$subsetted; \ + done + web: mkdir -p out/web for source in hinted/*.ttf; do \ -- cgit v1.2.3