Skip to content

Commit

Permalink
1.006update1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-212 committed Apr 12, 2024
1 parent dfc8073 commit 580e1e5
Show file tree
Hide file tree
Showing 13 changed files with 817 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_fonts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Define version (branch)
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
run: |
python misc/scripts/get_ver.py
GITSHA=${{ github.sha }}
VERSION=$(cat version.txt)
echo "InterNumeric_version=${VERSION}-${GITSHA:0:7}" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ update.md
fonts-temp
src/InterNumeric(自动存储).glyphs
install.sh
version.txt
18 changes: 18 additions & 0 deletions misc/scripts/get_ver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from fontTools.ufoLib import UFOReader
import os

def get_font_version(ufo_path):
reader = UFOReader(ufo_path)
info = reader._readInfo(validate=False)
return info["versionMajor"], info["versionMinor"]

inter_numeric_Regular_path = "fonts-temp/master-ufo/InterNumeric-Regular.ufo"
version_major, version_minor = get_font_version(inter_numeric_Regular_path)

try:
os.remove("version1.txt")
except FileNotFoundError:
pass

with open("version.txt", "w") as version_file:
version_file.write(f"{version_major}.{version_minor:03}")
4 changes: 3 additions & 1 deletion src/InterNumeric.glyphspackage/UIState.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
displayStrings = (
"’,/comma.tf",
"2/two.tf",
"."
".",
"1/zero.cv05 23
34:20"
);
}
15 changes: 13 additions & 2 deletions src/InterNumeric.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ feature cv01;
feature cv02;
feature cv03;
feature cv04;
feature cv05;
";
tag = aalt;
},
Expand Down Expand Up @@ -191,6 +192,16 @@ sub six.tf by six.tf.cv04;
sub nine.tf by nine.tf.cv04;
";
tag = cv04;
},
{
code = "cvParameters { FeatUILabelNameID { name \"Square Zero\"; }; };
sub zero by zero.cv05;
sub zero.slash by zero.slash.cv05;
sub zero.tf by zero.tf.cv05;
sub zero.tf.slash by zero.tf.slash.cv05;
";
tag = cv05;
}
);
fontMaster = (
Expand Down Expand Up @@ -260,7 +271,7 @@ stemValues = (
46
);
userData = {
GSCornerRadius = 15;
GSCornerRadius = 320;
};
},
{
Expand Down Expand Up @@ -1431,5 +1442,5 @@ name = V;
);
unitsPerEm = 2048;
versionMajor = 1;
versionMinor = 5;
versionMinor = 6;
}
1 change: 1 addition & 0 deletions src/InterNumeric.glyphspackage/glyphs/H_.glyph
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
color = 4;
glyphname = H;
kernLeft = B;
kernRight = H;
Expand Down
31 changes: 22 additions & 9 deletions src/InterNumeric.glyphspackage/glyphs/_part.zeroslash.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = _center;
pos = (541,745);
}
);
layerId = "45635B2B-919A-4B12-975B-2FA0A7CA8B35";
background = {
shapes = (
{
closed = 1;
Expand All @@ -21,6 +21,19 @@ nodes = (
);
}
);
};
layerId = "45635B2B-919A-4B12-975B-2FA0A7CA8B35";
shapes = (
{
closed = 1;
nodes = (
(859,1331,l),
(827,1369,l),
(223,163,l),
(252,118,l)
);
}
);
width = 1082;
},
{
Expand Down Expand Up @@ -77,10 +90,10 @@ shapes = (
{
closed = 1;
nodes = (
(849,1311,l),
(817,1349,l),
(233,183,l),
(262,138,l)
(859,1331,l),
(827,1369,l),
(223,163,l),
(252,118,l)
);
}
);
Expand Down Expand Up @@ -140,10 +153,10 @@ shapes = (
{
closed = 1;
nodes = (
(849,1311,l),
(817,1349,l),
(233,183,l),
(262,138,l)
(859,1331,l),
(827,1369,l),
(223,163,l),
(252,118,l)
);
}
);
Expand Down
Loading

0 comments on commit 580e1e5

Please sign in to comment.