Skip to content

Commit

Permalink
1.005update4
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-212 committed Apr 11, 2024
1 parent 0630dfe commit dfc8073
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 425 deletions.
16 changes: 7 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ init: requirements.txt

build: build.stamp

# fontmake -g "src/InterNumeric.glyphspackage" -o variable --output-path "fonts/variable/InterNumeric[wght,RDNS].ttf" --filter DecomposeTransformedComponentsFilter --verbose DEBUG
# fontmake -g "src/InterNumeric.glyphspackage" -o variable-cff2 --output-path "fonts/variable/InterNumeric[wght,RDNS].otf" --filter DecomposeTransformedComponentsFilter --verbose DEBUG
# fontmake -g "src/InterNumeric.glyphspackage" -o otf --output-dir "fonts/static/" --filter DecomposeTransformedComponentsFilter -i
# fontmake -m "fonts-temp/master-ufo/InterNumeric.designspace" -o variable --output-path "fonts/variable/InterNumeric[wght,RDNS].ttf" --filter DecomposeTransformedComponentsFilter
# fontmake -m "fonts-temp/master-ufo/InterNumeric.designspace" -o variable-cff2 --output-path "fonts/variable/InterNumeric[wght,RDNS].otf"


build.stamp: init.stamp
fontmake -g "src/InterNumeric.glyphspackage" -o variable --output-path "fonts/variable/InterNumeric[wght,RDNS].ttf" --filter DecomposeTransformedComponentsFilter
fontmake -g "src/InterNumeric.glyphspackage" -o ufo --output-dir "fonts-temp/master-ufo" --filter DecomposeTransformedComponentsFilter
python misc/scripts/copy_kern.py
fontmake -m "fonts-temp/master-ufo/InterNumeric.designspace" -o variable --output-path "fonts/variable/InterNumeric[wght,RDNS].ttf" --filter DecomposeTransformedComponentsFilter
python misc/scripts/stat.py
touch build.stamp

Expand All @@ -30,14 +32,10 @@ zip: build.stamp
test: build.stamp
fontbakery check-universal "fonts/variable/InterNumeric[wght,RDNS].ttf"

cleanbuild:
clean:
rm -rf fonts
rm -rf fonts-temp
rm build.stamp

cleanufo:
rm -rf fonts-temp
rm ufo.stamp

update:
pip install -Ur requirements.txt
31 changes: 31 additions & 0 deletions misc/scripts/copy_kern.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import shutil, os

# Paths to the UFOs
inter_numeric_Light_path = "fonts-temp/master-ufo/InterNumeric-Light.ufo"
inter_numeric_Regular_path = "fonts-temp/master-ufo/InterNumeric-Regular.ufo"
inter_numeric_Black_path = "fonts-temp/master-ufo/InterNumeric-Black.ufo"

inter_numeric_LightSoftened_path = "fonts-temp/master-ufo/InterNumeric-LightSoftened.ufo"
inter_numeric_Softened_path = "fonts-temp/master-ufo/InterNumeric-Softened.ufo"
inter_numeric_BlackSoftened_path = "fonts-temp/master-ufo/InterNumeric-BlackSoftened.ufo"

inter_numeric_LightRounded_path = "fonts-temp/master-ufo/InterNumeric-LightRounded.ufo"
inter_numeric_Rounded_path = "fonts-temp/master-ufo/InterNumeric-Rounded.ufo"
inter_numeric_BlackRounded_path = "fonts-temp/master-ufo/InterNumeric-BlackRounded.ufo"

kerning_plist = "kerning.plist"

shutil.copy(os.path.join(inter_numeric_Light_path, kerning_plist),
os.path.join(inter_numeric_LightSoftened_path, kerning_plist))
shutil.copy(os.path.join(inter_numeric_Light_path, kerning_plist),
os.path.join(inter_numeric_LightRounded_path, kerning_plist))

shutil.copy(os.path.join(inter_numeric_Regular_path, kerning_plist),
os.path.join(inter_numeric_Softened_path, kerning_plist))
shutil.copy(os.path.join(inter_numeric_Regular_path, kerning_plist),
os.path.join(inter_numeric_Rounded_path, kerning_plist))

shutil.copy(os.path.join(inter_numeric_Black_path, kerning_plist),
os.path.join(inter_numeric_BlackSoftened_path, kerning_plist))
shutil.copy(os.path.join(inter_numeric_Black_path, kerning_plist),
os.path.join(inter_numeric_BlackRounded_path, kerning_plist))
Loading

0 comments on commit dfc8073

Please sign in to comment.