Skip to content

Commit

Permalink
Add simple example kern
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheeter committed Jun 5, 2023
1 parent 103d076 commit 0ea2ace
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
17 changes: 14 additions & 3 deletions resources/testdata/glyphs2/WghtVar.glyphs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.appVersion = "3151";
DisplayStrings = (
"-",
"!"
"!!--"
);
copyright = "Copy!";
customParameters = (
Expand Down Expand Up @@ -84,7 +84,7 @@ unicode = 0020;
},
{
glyphname = exclam;
lastChange = "2022-12-01 05:10:49 +0000";
lastChange = "2023-06-05 22:26:16 +0000";
layers = (
{
layerId = m01;
Expand Down Expand Up @@ -139,7 +139,7 @@ unicode = 0021;
},
{
glyphname = hyphen;
lastChange = "2022-12-01 04:57:39 +0000";
lastChange = "2023-06-05 22:27:35 +0000";
layers = (
{
layerId = m01;
Expand Down Expand Up @@ -208,6 +208,17 @@ width = 600;
unicode = 003D;
}
);
kerning = {
m01 = {
exclam = {
exclam = -360;
hyphen = 20;
};
hyphen = {
hyphen = -150;
};
};
};
unitsPerEm = 1000;
versionMajor = 42;
versionMinor = 42;
Expand Down
17 changes: 14 additions & 3 deletions resources/testdata/glyphs3/WghtVar.glyphs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.formatVersion = 3;
DisplayStrings = (
"-",
"!"
"!!--"
);
axes = (
{
Expand Down Expand Up @@ -93,7 +93,7 @@ unicode = 32;
},
{
glyphname = exclam;
lastChange = "2022-12-01 05:10:49 +0000";
lastChange = "2023-06-05 22:26:16 +0000";
layers = (
{
layerId = m01;
Expand Down Expand Up @@ -148,7 +148,7 @@ unicode = 33;
},
{
glyphname = hyphen;
lastChange = "2022-12-01 04:57:39 +0000";
lastChange = "2023-06-05 22:27:35 +0000";
layers = (
{
layerId = m01;
Expand Down Expand Up @@ -218,6 +218,17 @@ width = 600;
unicode = 61;
}
);
kerningLTR = {
m01 = {
exclam = {
exclam = -360;
hyphen = 20;
};
hyphen = {
hyphen = -150;
};
};
};
metrics = (
{
type = ascender;
Expand Down

0 comments on commit 0ea2ace

Please sign in to comment.