Skip to content

Commit

Permalink
Add STAT table directly to the source
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Sep 23, 2024
1 parent 57df86a commit 74ab1f5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Binary file modified fonts/Mada.ttf
Binary file not shown.
1 change: 0 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ufo2ft >= 2.30.0
fontmake
axisregistry
alifTools[shaping,sample] @ git+https://github.com/aliftype/tools.git@604c296c02d3015ed5d80c3970e86ec22f690a5a
5 changes: 0 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ appdirs==1.4.4
# via fs
attrs==24.2.0
# via ufolib2
axisregistry==0.4.11
# via -r requirements.in
blackrenderer==0.6.0
# via aliftools
booleanoperations==0.9.0
Expand All @@ -30,7 +28,6 @@ fontmath==0.9.4
# ufo2ft
fonttools[lxml,ufo,unicode]==4.53.1
# via
# axisregistry
# blackrenderer
# booleanoperations
# cffsubr
Expand All @@ -48,8 +45,6 @@ lxml==5.3.0
# via fonttools
openstep-plist==0.3.1
# via glyphslib
protobuf==3.20.3
# via axisregistry
pyclipper==1.3.0.post5
# via booleanoperations
pyyaml==6.0.2
Expand Down
4 changes: 0 additions & 4 deletions scripts/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ def main():
parts = [version] + str(name).split(";")[1:]
name.string = ";".join(parts)

if "fvar" in font:
from axisregistry import build_stat

build_stat(font, [])
fix_unhinted_font(font)

unicodes = set(font.getBestCmap().keys())
Expand Down
15 changes: 15 additions & 0 deletions sources/Mada.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ code = "lookup LamAlef {
} LamAlef;
";
name = Prefix;
},
{
code = "table STAT {
ElidedFallbackName { name \"Regular\"; };
DesignAxis wght 0 { name \"Weight\"; };
AxisValue { name \"ExtraLight\"; location wght 200; };
AxisValue { name \"Light\"; location wght 300; };
AxisValue { name \"Regular\"; location wght 400 700; flag ElidableAxisValueName;};
AxisValue { name \"Medium\"; location wght 500; };
AxisValue { name \"SemiBold\"; location wght 600; };
AxisValue { name \"Bold\"; location wght 700; };
AxisValue { name \"ExtraBold\"; location wght 800; };
AxisValue { name \"Black\"; location wght 900; };
} STAT;";
name = STAT;
}
);
features = (
Expand Down

0 comments on commit 74ab1f5

Please sign in to comment.