Skip to content

Commit

Permalink
1.004update6
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-212 committed Apr 2, 2024
1 parent 5d80c9b commit d65999f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 256 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ 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

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

zip: build.stamp
Expand Down
36 changes: 36 additions & 0 deletions misc/scripts/stat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from fontTools.otlLib.builder import buildStatTable
from fontTools.ttLib.ttFont import TTFont

path = "fonts/variable/InterNumeric[wght,RDNS].ttf"
font = TTFont(path)

axes = [
dict(
tag="wght",
name="Weight",
values=[
dict(value=100, name='Thin'),
dict(value=200, name='Extralight'),
dict(value=300, name='Light'),
dict(value=400, name='Regular', flags=0x2, linkedValue=700),
dict(value=500, name='Medium'),
dict(value=600, name='Semibold'),
dict(value=700, name='Bold'),
dict(value=800, name='Extrabold'),
dict(value=900, name='Black'),
],
),
dict(
tag="RDNS",
name="Roundness",
values=[
dict(value=-1, name='Regular'),
dict(value=0, name='Softened', flags=0x2),
dict(value=1, name='Rounded'),
],
)
]


buildStatTable(font, axes=axes)
font.save(path)
Loading

0 comments on commit d65999f

Please sign in to comment.