From 2b5dca5d77e7394df66fa8f2e8a827b1c6fec441 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Thu, 3 Jul 2014 23:36:52 -0700 Subject: Rework the font processing for Android. yMin and yMax values needed for Android are now set after the subsetting in a separate script. The touchup script is also divided into Android-specific changes and general ones. --- Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d5cb739..af719f0 100644 --- a/Makefile +++ b/Makefile @@ -28,11 +28,13 @@ mono: open -nWa "$(FONTLAB)" /tmp/makefonts.flw android: - rm -rf out/android/temp - mkdir --parents out/android/temp - for f in out/RobotoTTF/*.ttf out/RobotoCondensedTTF/*.ttf; do \ - temp_location=out/android/temp/$$(basename $$f); \ - final_location=out/android/$$(basename $$f); \ - python scripts/touchup_for_android.py $$f $$temp_location; \ - python $$HOME/noto/nototools/subset.py $$temp_location $$final_location; \ + mkdir -p out/android + for source in out/RobotoTTF/*.ttf out/RobotoCondensedTTF/*.ttf; do \ + touched=$$(mktemp); \ + subsetted=$$(mktemp); \ + final=out/android/$$(basename $$source); \ + python scripts/touchup_for_android.py $$source $$touched; \ + python $$HOME/noto/nototools/subset.py $$touched $$subsetted; \ + python scripts/force_yminmax.py $$subsetted $$final; \ + rm $$touched $$subsetted; \ done -- cgit v1.2.3