Skip to content

Commit

Permalink
Variation sequences for quotes & better periodcentered
Browse files Browse the repository at this point in the history
  • Loading branch information
celestialphineas committed Dec 18, 2024
1 parent 8d7d325 commit 227319a
Show file tree
Hide file tree
Showing 22 changed files with 364 additions and 36 deletions.
37 changes: 30 additions & 7 deletions src/ZhuqueFangsong.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,19 @@ tag = aalt;
},
{
code = "sub @Lowercase emdash' by emdash.lower;
sub @Uppercase emdash' by emdash.case;
sub @Uppercase emdash' by emdash.upper;
sub emdash.lower emdash' by emdash.lower;
sub emdash.case emdash' by emdash.case;
sub emdash.upper emdash' by emdash.upper;
sub @Lowercase ellipsis' by ellipsis.lower;
sub @Uppercase ellipsis' by ellipsis.lower;
sub ellipsis.lower ellipsis' by ellipsis.lower;
sub @Lowercase periodcentered' by periodcentered.lower;
sub @Uppercase periodcentered' by periodcentered.upper;
sub periodcentered.lower periodcentered' by periodcentered.lower;
sub periodcentered.upper periodcentered' by periodcentered.upper;
sub emdash by emdash.unjoined;
sub emdash.unjoined emdash.unjoined' by emdash.joined;
sub emdash.joined emdash.unjoined' by emdash.joined;
Expand Down Expand Up @@ -1555,13 +1561,11 @@ tag = smcp;
},
{
automatic = 1;
code = "sub periodcentered by periodcentered.case;
sub bullet by bullet.case;
code = "sub bullet by bullet.case;
sub slash by slash.case;
sub backslash by backslash.case;
sub hyphen by hyphen.case;
sub endash by endash.case;
sub emdash by emdash.case;
sub parenleft by parenleft.case;
sub parenright by parenright.case;
sub braceleft by braceleft.case;
Expand Down Expand Up @@ -1651,7 +1655,6 @@ sub f l by fl;
tag = liga;
},
{
automatic = 1;
code = "sub ampersand by ampersand.full;
sub asterisk by asterisk.full;
sub at by at.full;
Expand All @@ -1676,7 +1679,11 @@ sub bracketright by bracketright.full;
sub parenleft by parenleft.full;
sub parenright by parenright.full;
sub asciitilde by asciitilde.full;
";
sub quotedblleft by quotedblleft.uv002;
sub quotedblright by quotedblright.uv002;
sub quoteleft by quoteleft.uv002;
sub quoteright by quoteright.uv002;";
tag = fwid;
},
{
Expand Down Expand Up @@ -1736,9 +1743,17 @@ sub ellipsis by ellipsis.vert;
sub ellipsis.lower by ellipsis.vert;
sub quoteleft by cornerbracketleft.vert;
sub quoteleft.uv001 by cornerbracketleft.vert;
sub quoteleft.uv002 by cornerbracketleft.vert;
sub quoteright by cornerbracketright.vert;
sub quoteright.uv001 by cornerbracketright.vert;
sub quoteright.uv002 by cornerbracketright.vert;
sub quotedblleft by whitecornerbracketleft.vert;
sub quotedblleft.uv001 by whitecornerbracketleft.vert;
sub quotedblleft.uv002 by whitecornerbracketleft.vert;
sub quotedblright by whitecornerbracketright.vert;
sub quotedblright.uv001 by whitecornerbracketright.vert;
sub quotedblright.uv002 by whitecornerbracketright.vert;
";
tag = vert;
},
Expand Down Expand Up @@ -1823,9 +1838,17 @@ sub ellipsis by ellipsis.vert;
sub ellipsis.lower by ellipsis.vert;
sub quoteleft by cornerbracketleft.vert;
sub quoteleft.uv001 by cornerbracketleft.vert;
sub quoteleft.uv002 by cornerbracketleft.vert;
sub quoteright by cornerbracketright.vert;
sub quoteright.uv001 by cornerbracketright.vert;
sub quoteright.uv002 by cornerbracketright.vert;
sub quotedblleft by whitecornerbracketleft.vert;
sub quotedblleft.uv001 by whitecornerbracketleft.vert;
sub quotedblleft.uv002 by whitecornerbracketleft.vert;
sub quotedblright by whitecornerbracketright.vert;
sub quotedblright.uv001 by whitecornerbracketright.vert;
sub quotedblright.uv002 by whitecornerbracketright.vert;
";
tag = vrt2;
},
Expand Down
2 changes: 1 addition & 1 deletion src/ZhuqueFangsong.glyphspackage/glyphs/L_dot.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ref = L;
{
alignment = -1;
pos = (320,215);
ref = periodcentered;
ref = periodcentered.lower;
}
);
width = 533;
Expand Down
6 changes: 3 additions & 3 deletions src/ZhuqueFangsong.glyphspackage/glyphs/anoteleia.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ layerId = m01;
shapes = (
{
pos = (0,96);
ref = periodcentered;
ref = periodcentered.lower;
}
);
width = 238;
}
);
locked = 1;
metricLeft = "=periodcentered";
metricRight = "=periodcentered";
metricLeft = "=periodcentered.upper";
metricRight = "=periodcentered.upper";
unicode = 903;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layerId = m01;
shapes = (
{
alignment = 1;
ref = periodcentered;
ref = periodcentered.lower;
}
);
width = 238;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ ref = period;
width = 658;
}
);
locked = 1;
}
1 change: 1 addition & 0 deletions src/ZhuqueFangsong.glyphspackage/glyphs/emdash.lower.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ nodes = (
width = 918;
}
);
locked = 1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ nodes = (
width = 924.03922;
}
);
locked = 1;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
color = 9;
glyphname = emdash.case;
glyphname = emdash.upper;
layers = (
{
layerId = m01;
Expand Down
2 changes: 1 addition & 1 deletion src/ZhuqueFangsong.glyphspackage/glyphs/ldot.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ref = l;
{
alignment = -1;
pos = (148,51);
ref = periodcentered;
ref = periodcentered.lower;
}
);
width = 332;
Expand Down
2 changes: 1 addition & 1 deletion src/ZhuqueFangsong.glyphspackage/glyphs/ldot.sc.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ref = l.sc;
{
alignment = -1;
pos = (255,95);
ref = periodcentered;
ref = periodcentered.lower;
}
);
width = 490;
Expand Down
31 changes: 14 additions & 17 deletions src/ZhuqueFangsong.glyphspackage/glyphs/periodcentered.glyph
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
{
color = 2;
color = 9;
glyphname = periodcentered;
kernLeft = hyphen;
kernRight = hyphen;
layers = (
{
layerId = m01;
shapes = (
{
closed = 1;
nodes = (
(155,168,o),
(179,196,o),
(179,230,cs),
(179,261,o),
(159,287,o),
(122,287,cs),
(84,287,o),
(60,259,o),
(60,225,cs),
(60,196,o),
(78,168,o),
(116,168,cs)
(292,280,o),
(320,313,o),
(320,353,cs),
(320,389,o),
(296,420,o),
(253,420,cs),
(208,420,o),
(180,387,o),
(180,347,cs),
(180,313,o),
(201,280,o),
(246,280,cs)
);
}
);
width = 238;
width = 500;
}
);
locked = 1;
unicode = 183;
}
32 changes: 32 additions & 0 deletions src/ZhuqueFangsong.glyphspackage/glyphs/periodcentered.lower.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
color = 2;
glyphname = periodcentered.lower;
kernLeft = hyphen;
kernRight = hyphen;
layers = (
{
layerId = m01;
shapes = (
{
closed = 1;
nodes = (
(155,168,o),
(179,196,o),
(179,230,cs),
(179,261,o),
(159,287,o),
(122,287,cs),
(84,287,o),
(60,259,o),
(60,225,cs),
(60,196,o),
(78,168,o),
(116,168,cs)
);
}
);
width = 238;
}
);
locked = 1;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
color = 2;
glyphname = periodcentered.case;
glyphname = periodcentered.upper;
layers = (
{
layerId = m01;
shapes = (
{
pos = (0,80);
ref = periodcentered;
ref = periodcentered.lower;
}
);
width = 238;
Expand Down
20 changes: 20 additions & 0 deletions src/ZhuqueFangsong.glyphspackage/glyphs/quotedblleft.uv001.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
color = 2;
glyphname = quotedblleft.uv001;
kernLeft = asterisk;
kernRight = asterisk;
layers = (
{
layerId = m01;
shapes = (
{
ref = quotedblleft;
}
);
width = 331;
}
);
locked = 1;
metricLeft = quoteleft;
metricRight = quoteleft;
}
58 changes: 58 additions & 0 deletions src/ZhuqueFangsong.glyphspackage/glyphs/quotedblleft.uv002.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
color = 9;
glyphname = quotedblleft.uv002;
layers = (
{
layerId = m01;
shapes = (
{
closed = 1;
nodes = (
(868,462,o),
(891,476,o),
(914,504,c),
(913,519,l),
(878,530,o),
(854,559,o),
(854,592,cs),
(854,625,o),
(876,668,o),
(911,700,c),
(908,711,l),
(885,723,l),
(819,667,o),
(781,604,o),
(781,553,cs),
(781,503,o),
(809,462,o),
(845,462,cs)
);
},
{
closed = 1;
nodes = (
(697,462,o),
(720,476,o),
(743,504,c),
(742,519,l),
(707,530,o),
(684,559,o),
(684,592,cs),
(684,625,o),
(706,668,o),
(740,700,c),
(738,711,l),
(715,723,l),
(649,667,o),
(610,604,o),
(610,553,cs),
(610,503,o),
(639,462,o),
(674,462,cs)
);
}
);
width = 1000;
}
);
}
20 changes: 20 additions & 0 deletions src/ZhuqueFangsong.glyphspackage/glyphs/quotedblright.uv001.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
color = 2;
glyphname = quotedblright.uv001;
kernLeft = asterisk;
kernRight = asterisk;
layers = (
{
layerId = m01;
shapes = (
{
ref = quotedblright;
}
);
width = 331;
}
);
locked = 1;
metricLeft = quoteright;
metricRight = quoteright;
}
Loading

0 comments on commit 227319a

Please sign in to comment.