Skip to content

Commit

Permalink
2024/06/14#5
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-212 committed Apr 16, 2024
1 parent 6a9003f commit ac4c14d
Show file tree
Hide file tree
Showing 113 changed files with 2,825 additions and 3,720 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ src/NeoHanSans-Variable(自动存储).glyphspackage
fonts
fonts-temp
version.txt
*.stamp
*.stamp
install.sh
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build: build.stamp

build.stamp: init.stamp
fontmake -g "src/NeoHanSans-Variable.glyphspackage" -o variable --output-path "fonts/variable/NeoHanSansSC[wght].ttf"
fontmake -g "src/NeoHanSans-Variable.glyphspackage" -o variable-cff2 --output-path "fonts/variable/NeoHanSansSC[wght].otf"
python scripts/stat.py
touch build.stamp

Expand Down
14 changes: 9 additions & 5 deletions scripts/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
using fontmake to compile the UFOs to the final binary font.
"""

path = "fonts/variable/NeoHanSansSC[wght].ttf"
font = TTFont(path)

axes = [
dict(
tag="wght",
Expand All @@ -27,5 +24,12 @@
)
]

builder.buildStatTable(font, axes)
font.save(path)
ttpath = "fonts/variable/NeoHanSansSC[wght].ttf"
ttfont = TTFont(ttpath)
builder.buildStatTable(ttfont, axes)
ttfont.save(ttpath)

otpath = "fonts/variable/NeoHanSansSC[wght].otf"
otfont = TTFont(otpath)
builder.buildStatTable(otfont, axes)
otfont.save(otpath)
4 changes: 1 addition & 3 deletions src/NeoHanSans-Variable.glyphspackage/glyphs/uni4F_0F_.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ nodes = (
(197,588,l),
(197,-68,l),
(227,-68,l),
(227,615,l),
(225,616,l)
(227,615,l)
);
},
{
Expand Down Expand Up @@ -104,7 +103,6 @@ nodes = (
(137,567,l),
(137,-95,l),
(283,-95,l),
(283,713,l),
(283,713,l)
);
},
Expand Down
71 changes: 30 additions & 41 deletions src/NeoHanSans-Variable.glyphspackage/glyphs/uni558A_.glyph
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
color = 4;
glyphname = uni558A;
layers = (
{
Expand All @@ -10,19 +11,19 @@ nodes = (
(95,727,l),
(95,698,l),
(270,698,l),
(270,229,l),
(95,229,l),
(95,199,l),
(299,199,l),
(270,189,l),
(95,189,l),
(95,159,l),
(299,159,l),
(299,727,l)
);
},
{
closed = 1;
nodes = (
(84,727,l),
(84,96,l),
(114,96,l),
(84,159,l),
(114,159,l),
(114,727,l)
);
},
Expand All @@ -45,10 +46,10 @@ nodes = (
(478,402,l),
(478,373,l),
(644,373,l),
(644,174,l),
(478,174,l),
(644,144,l),
(478,144,l),
(673,144,l),
(478,114,l),
(673,114,l),
(673,402,l)
);
},
Expand All @@ -59,9 +60,7 @@ nodes = (
(833,268,o),
(732,79,o),
(553,-36,c),
(561,-42,o),
(573,-53,o),
(577,-59,c),
(577,-59,l),
(756,65,o),
(860,252,o),
(916,519,c)
Expand All @@ -75,9 +74,7 @@ nodes = (
(373,273,o),
(367,85,o),
(307,-54,c),
(314,-57,o),
(326,-65,o),
(331,-71,c),
(331,-71,l),
(393,72,o),
(402,269,o),
(402,406,cs),
Expand Down Expand Up @@ -106,8 +103,8 @@ nodes = (
closed = 1;
nodes = (
(462,402,l),
(462,76,l),
(491,76,l),
(462,114,l),
(491,114,l),
(491,402,l)
);
},
Expand All @@ -121,9 +118,7 @@ nodes = (
(926,-69,o),
(949,-23,o),
(964,121,c),
(956,123,o),
(945,128,o),
(938,133,c),
(938,133,l),
(929,29,o),
(914,-34,o),
(892,-34,cs),
Expand All @@ -145,19 +140,19 @@ nodes = (
(135,773,l),
(135,640,l),
(232,640,l),
(232,298,l),
(135,298,l),
(135,165,l),
(346,165,l),
(232,258,l),
(135,258,l),
(135,125,l),
(346,125,l),
(346,773,l)
);
},
{
closed = 1;
nodes = (
(59,773,l),
(59,80,l),
(181,80,l),
(59,125,l),
(181,125,l),
(181,773,l)
);
},
Expand All @@ -180,10 +175,10 @@ nodes = (
(545,399,l),
(545,294,l),
(615,294,l),
(615,215,l),
(545,215,l),
(545,111,l),
(698,111,l),
(615,205,l),
(545,205,l),
(545,101,l),
(698,101,l),
(698,399,l)
);
},
Expand All @@ -194,9 +189,7 @@ nodes = (
(813,303,o),
(724,114,o),
(572,3,c),
(596,-18,o),
(636,-64,o),
(651,-87,c),
(651,-87,l),
(813,44,o),
(913,256,o),
(966,517,c)
Expand All @@ -210,9 +203,7 @@ nodes = (
(371,296,o),
(366,110,o),
(304,-19,c),
(330,-30,o),
(380,-63,o),
(400,-83,c),
(400,-83,l),
(471,59,o),
(483,280,o),
(483,430,cs),
Expand Down Expand Up @@ -241,8 +232,8 @@ nodes = (
closed = 1;
nodes = (
(497,399,l),
(497,61,l),
(579,61,l),
(497,101,l),
(579,101,l),
(579,399,l)
);
},
Expand All @@ -256,9 +247,7 @@ nodes = (
(911,-89,o),
(965,-52,o),
(990,138,c),
(971,148,o),
(919,181,o),
(900,206,c),
(900,206,l),
(896,116,o),
(888,67,o),
(876,67,cs),
Expand Down
41 changes: 17 additions & 24 deletions src/NeoHanSans-Variable.glyphspackage/glyphs/uni558B_.glyph
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
color = 4;
glyphname = uni558B;
layers = (
{
Expand Down Expand Up @@ -38,9 +39,7 @@ nodes = (
(537,136,o),
(404,33,o),
(289,-14,c),
(296,-19,o),
(306,-30,o),
(311,-38,c),
(311,-38,l),
(425,14,o),
(561,120,o),
(631,230,c)
Expand All @@ -53,9 +52,7 @@ nodes = (
(712,125,o),
(836,11,o),
(938,-41,c),
(944,-32,o),
(954,-21,o),
(961,-16,c),
(961,-16,l),
(858,31,o),
(733,140,o),
(671,240,c)
Expand Down Expand Up @@ -91,19 +88,19 @@ nodes = (
(99,751,l),
(99,721,l),
(259,721,l),
(259,225,l),
(99,225,l),
(99,195,l),
(288,195,l),
(259,185,l),
(99,185,l),
(99,155,l),
(288,155,l),
(288,751,l)
);
},
{
closed = 1;
nodes = (
(83,751,l),
(83,84,l),
(112,84,l),
(83,155,l),
(112,155,l),
(112,751,l)
);
}
Expand Down Expand Up @@ -148,9 +145,7 @@ nodes = (
(510,148,o),
(397,71,o),
(282,31,c),
(313,4,o),
(357,-51,o),
(378,-85,c),
(378,-85,l),
(497,-29,o),
(608,75,o),
(675,191,c)
Expand All @@ -163,9 +158,7 @@ nodes = (
(703,80,o),
(793,-26,o),
(888,-84,c),
(911,-47,o),
(955,6,o),
(987,33,c),
(987,33,l),
(891,72,o),
(794,147,o),
(742,223,c)
Expand Down Expand Up @@ -201,19 +194,19 @@ nodes = (
(140,791,l),
(140,678,l),
(216,678,l),
(216,249,l),
(140,249,l),
(140,135,l),
(338,135,l),
(216,209,l),
(140,209,l),
(140,95,l),
(338,95,l),
(338,791,l)
);
},
{
closed = 1;
nodes = (
(55,791,l),
(55,57,l),
(177,57,l),
(55,95,l),
(177,95,l),
(177,791,l)
);
}
Expand Down
Loading

0 comments on commit ac4c14d

Please sign in to comment.