Skip to content

Commit

Permalink
2024/04/18#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-212 committed Apr 18, 2024
1 parent 2bdd850 commit 2c541dc
Show file tree
Hide file tree
Showing 305 changed files with 5,755 additions and 9,189 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ 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 --output-path "fonts-temp/variable/NeoHanSansSC[wght].ttf"
# fontmake -g "src/NeoHanSans-Variable.glyphspackage" -o variable-cff2 --output-path "fonts/variable/NeoHanSansSC[wght].otf"
mkdir fonts
mkdir fonts/variable
gftools fix-nonhinting "fonts-temp/variable/NeoHanSansSC[wght].ttf" "fonts/variable/NeoHanSansSC[wght].ttf"
python scripts/stat.py
touch build.stamp

Expand All @@ -35,10 +38,11 @@ test: build.stamp
fontbakery check-universal "fonts/variable/NeoHanSansSC[wght].ttf" -x com.google.fonts/check/gpos_kerning_info -x com.google.fonts/check/tabular_kerning -x com.google.fonts/check/monospace

test-google: build.stamp
fontbakery check-googlefonts "fonts/variable/NeoHanSansSC[wght].ttf" -x com.google.fonts/check/gpos_kerning_info -x com.google.fonts/check/tabular_kerning -x com.google.fonts/check/monospace
fontbakery check-googlefonts "fonts/variable/NeoHanSansSC[wght].ttf" -x com.google.fonts/check/gpos_kerning_info -x com.google.fonts/check/tabular_kerning -x com.google.fonts/check/monospace -x com.google.fonts/check/render_own_name -x com.google.fonts/check/glyphsets/shape_languages -x com.google.fonts/check/glyph_coverage

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

update:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Under construction...
## Roadmap 规划

- 预估在5月底~6月初完成GB2312的6763个汉字;
- 尝试将UPM从1000提到2048;
- 待所有GB2312汉字改完后,会添加中文标点符号,并将尝试支持直排标点;

注意:
Expand Down
12 changes: 6 additions & 6 deletions scripts/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from fontTools.otlLib import builder

"""
Add a STAT table to the Designspace document as a preprocessing before
using fontmake to compile the UFOs to the final binary font.
Add a STAT table to the Designspace document as a postprocessing after
using fontmake to compile the Glyphspackage to the final binary font.
"""

axes = [
Expand All @@ -15,10 +15,10 @@
dict(value=200, name='ExtraLight'),
dict(value=300, name='Light'),
dict(value=400, name='Regular', flags=0x2),
dict(value=500, name='Medium'),
dict(value=600, name='SemiBold'),
dict(value=700, name='Bold'),
dict(value=800, name='ExtraBold'),
dict(value=490, name='Medium'),
dict(value=580, name='SemiBold'),
dict(value=670, name='Bold'),
dict(value=780, name='ExtraBold'),
dict(value=900, name='Black'),
],
)
Expand Down
5 changes: 5 additions & 0 deletions src/NeoHanSans-Variable.glyphspackage/UIState.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
displayStrings = (
"宦宪宫宰害宴宵家宸容宽宾宿寂寄寅密寇富寐寒寓寝寞察寡寤寥寨寮寰寸对寺寻导寿封射将尉尊小少尔尕尖尘尚尜尝尢尤尥尧尬就尴尸尹尺尻"
);
}
41 changes: 38 additions & 3 deletions src/NeoHanSans-Variable.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ customParameters = (
{
name = unicodeRanges;
value = (
48,
59
);
},
Expand All @@ -22,7 +23,7 @@ value = (
{
name = panose;
value = (
0,
1,
1,
1,
1,
Expand All @@ -33,6 +34,24 @@ value = (
1,
1
);
},
{
name = "Axis Mappings";
value = {
wght = {
100 = 100;
400 = 400;
490 = 500;
580 = 600;
670 = 700;
780 = 800;
900 = 900;
};
};
},
{
name = "Enforce Compatibility Check";
value = 1;
}
);
date = "2024-04-15 11:56:13 +0000";
Expand Down Expand Up @@ -66,6 +85,14 @@ value = "90";
{
name = "CJK Grid";
value = "2";
},
{
name = hheaDescender;
value = -280;
},
{
name = hheaAscender;
value = 1040;
}
);
iconName = Light;
Expand All @@ -75,7 +102,7 @@ metricValues = (
pos = 880;
},
{
pos = 733;
pos = 760;
},
{
pos = 543;
Expand Down Expand Up @@ -118,6 +145,14 @@ value = "90";
{
name = "CJK Grid";
value = "2";
},
{
name = hheaDescender;
value = -280;
},
{
name = hheaAscender;
value = 1040;
}
);
iconName = Bold;
Expand All @@ -127,7 +162,7 @@ metricValues = (
pos = 880;
},
{
pos = 733;
pos = 760;
},
{
pos = 543;
Expand Down
45 changes: 45 additions & 0 deletions src/NeoHanSans-Variable.glyphspackage/glyphs/comma-han.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
color = 9;
glyphname = "comma-han";
layers = (
{
layerId = m01;
shapes = (
{
closed = 1;
nodes = (
(251,59,o),
(163,148,o),
(89,206,c),
(64,182,l),
(134,128,o),
(221,44,o),
(291,-43,c),
(320,-19,l)
);
}
);
width = 1000;
},
{
layerId = "5029AEDF-C899-4409-998A-C73D58F94579";
shapes = (
{
closed = 1;
nodes = (
(332,89,o),
(240,186,o),
(160,252,c),
(33,143,l),
(102,84,o),
(195,-14,o),
(245,-76,c),
(374,35,l)
);
}
);
width = 1000;
}
);
unicode = 12289;
}
97 changes: 97 additions & 0 deletions src/NeoHanSans-Variable.glyphspackage/glyphs/comma.full.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
color = 8;
glyphname = comma.full;
layers = (
{
background = {
shapes = (
{
closed = 1;
nodes = (
(207.667,-40,o),
(269,32.333,o),
(269,135,cs),
(269,191,o),
(247.333,228,o),
(206,228,cs),
(179.333,228,o),
(153,212.667,o),
(153,174,cs),
(153,136.667,o),
(175,121,o),
(207,121,cs),
(223,121,o),
(240.667,124,o),
(254,144,c),
(201,206,l),
(231,136,l),
(231,42.667,o),
(188,-9.667,o),
(108,-51,c),
(121,-76,l)
);
}
);
};
layerId = m01;
shapes = (
{
closed = 1;
nodes = (
(126,-96,l),
(206,222,l),
(170,222,l),
(99,-96,l)
);
}
);
width = 1000;
},
{
background = {
shapes = (
{
closed = 1;
nodes = (
(348.667,-117.667,o),
(426,-20,o),
(426,96,cs),
(426,188,o),
(383.667,246,o),
(305,246,cs),
(243.667,246,o),
(194,207.333,o),
(194,146,cs),
(194,83.333,o),
(246.333,46,o),
(301,46,cs),
(325,46,o),
(346.667,54.667,o),
(364,68,c),
(308,165,l),
(309,59,ls),
(309,11,o),
(262.333,-36.333,o),
(177,-59,c),
(214,-155,l)
);
}
);
};
layerId = "5029AEDF-C899-4409-998A-C73D58F94579";
shapes = (
{
closed = 1;
nodes = (
(234,-148,l),
(338,222,l),
(128,222,l),
(84,-148,l)
);
}
);
width = 1000;
}
);
unicode = 65292;
}
87 changes: 87 additions & 0 deletions src/NeoHanSans-Variable.glyphspackage/glyphs/period-han.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
color = 9;
glyphname = "period-han";
layers = (
{
layerId = m01;
shapes = (
{
closed = 1;
nodes = (
(117.243,240,o),
(52,176.348,o),
(52,97,cs),
(52,18.638,o),
(116.638,-46,o),
(195,-46,cs),
(274.348,-46,o),
(338,19.243,o),
(338,97,cs),
(338,176.143,o),
(274.143,240,o),
(195,240,cs)
);
},
{
closed = 1;
nodes = (
(129.84,-16,o),
(82,36.835,o),
(82,97,cs),
(82,158.788,o),
(133.212,210,o),
(195,210,cs),
(258.772,210,o),
(308,159.333,o),
(308,97,cs),
(308,34.333,o),
(257.667,-16,o),
(195,-16,cs)
);
}
);
width = 1000;
},
{
layerId = "5029AEDF-C899-4409-998A-C73D58F94579";
shapes = (
{
closed = 1;
nodes = (
(131,250,o),
(56,176,o),
(56,83,cs),
(56,-9,o),
(130,-84,o),
(223,-84,cs),
(317,-84,o),
(390,-9,o),
(390,83,cs),
(390,176,o),
(316,250,o),
(223,250,cs)
);
},
{
closed = 1;
nodes = (
(176,0,o),
(140,38,o),
(140,83,cs),
(140,130,o),
(178,166,o),
(223,166,cs),
(270,166,o),
(306,130,o),
(306,83,cs),
(306,37,o),
(270,0,o),
(223,0,cs)
);
}
);
width = 1000;
}
);
unicode = 12290;
}
Loading

0 comments on commit 2c541dc

Please sign in to comment.