Skip to content

Commit

Permalink
replacing data
Browse files Browse the repository at this point in the history
  • Loading branch information
ollimeier committed Apr 19, 2024
1 parent 37237f0 commit 309fef4
Show file tree
Hide file tree
Showing 26 changed files with 3,265 additions and 1,244 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ cython_debug/

# scm file
src/fontra_glyphs/_version.py
.DS_Store
56 changes: 56 additions & 0 deletions tests/data/GlyphsUnitTestSans3.fontra/font-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"unitsPerEm": 1000,
"fontInfo": {
"familyName": "Glyphs Unit Test Sans",
"versionMajor": 1,
"versionMinor": 0
},
"axes": {
"axes": [
{
"name": "Weight",
"label": "Weight",
"tag": "wght",
"minValue": 100,
"defaultValue": 400,
"maxValue": 900,
"mapping": [
[
100,
17
],
[
200,
30
],
[
300,
55
],
[
357,
75
],
[
400,
90
],
[
500,
133
],
[
700,
179
],
[
900,
220
]
]
}
]
},
"sources": {},
"customData": {}
}
12 changes: 12 additions & 0 deletions tests/data/GlyphsUnitTestSans3.fontra/glyph-info.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
glyph name;code points
A;U+0041
Adieresis;U+00C4
_part.shoulder;
_part.stem;
a;U+0061
a.sc;
adieresis;U+00E4
dieresis;U+00A8
h;U+0068
m;U+006D
n;U+006E
237 changes: 237 additions & 0 deletions tests/data/GlyphsUnitTestSans3.fontra/glyphs/A^1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
{
"name": "A",
"sources": [
{
"name": "Light",
"layerName": "Light (layer #0)",
"location": {
"Weight": 17
}
},
{
"name": "Regular",
"layerName": "Regular (layer #1)",
"location": {
"Weight": 90
}
},
{
"name": "Bold",
"layerName": "Bold (layer #2)",
"location": {
"Weight": 220
}
}
],
"layers": {
"Bold (layer #2)": {
"glyph": {
"path": {
"contours": [
{
"points": [
{
"x": 733,
"y": 0
},
{
"x": 555,
"y": 700
},
{
"x": 205,
"y": 700
},
{
"x": 20,
"y": 0
},
{
"x": 253,
"y": 0
},
{
"x": 356,
"y": 470
},
{
"x": 385,
"y": 470
},
{
"x": 491,
"y": 0
}
],
"isClosed": true
},
{
"points": [
{
"x": 600,
"y": 268
},
{
"x": 162,
"y": 268
},
{
"x": 154,
"y": 103
},
{
"x": 596,
"y": 103
}
],
"isClosed": true
}
]
},
"xAdvance": 753
}
},
"Light (layer #0)": {
"glyph": {
"path": {
"contours": [
{
"points": [
{
"x": 548,
"y": 0
},
{
"x": 321,
"y": 700
},
{
"x": 275,
"y": 700
},
{
"x": 45,
"y": 0
},
{
"x": 65,
"y": 0
},
{
"x": 289,
"y": 679
},
{
"x": 307,
"y": 679
},
{
"x": 527,
"y": 0
}
],
"isClosed": true
},
{
"points": [
{
"x": 467,
"y": 225
},
{
"x": 128,
"y": 225
},
{
"x": 123,
"y": 207
},
{
"x": 472,
"y": 207
}
],
"isClosed": true
}
]
},
"xAdvance": 593
}
},
"Regular (layer #1)": {
"glyph": {
"path": {
"contours": [
{
"points": [
{
"x": 617,
"y": 0
},
{
"x": 412,
"y": 700
},
{
"x": 248,
"y": 700
},
{
"x": 40,
"y": 0
},
{
"x": 134,
"y": 0
},
{
"x": 313,
"y": 610
},
{
"x": 342,
"y": 610
},
{
"x": 521,
"y": 0
}
],
"isClosed": true
},
{
"points": [
{
"x": 514,
"y": 269
},
{
"x": 150,
"y": 269
},
{
"x": 148,
"y": 178
},
{
"x": 510,
"y": 178
}
],
"isClosed": true
}
]
},
"xAdvance": 657
}
}
},
"customData": {
"com.glyphsapp.glyph-color": [
120,
220,
20,
4
]
}
}
79 changes: 79 additions & 0 deletions tests/data/GlyphsUnitTestSans3.fontra/glyphs/Adieresis^1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"name": "Adieresis",
"sources": [
{
"name": "Light",
"layerName": "Light (layer #0)",
"location": {
"Weight": 17
}
},
{
"name": "Regular",
"layerName": "Regular (layer #1)",
"location": {
"Weight": 90
}
},
{
"name": "Bold",
"layerName": "Bold (layer #2)",
"location": {
"Weight": 220
}
}
],
"layers": {
"Bold (layer #2)": {
"glyph": {
"components": [
{
"name": "A"
},
{
"name": "dieresis",
"transformation": {
"translateX": 110,
"translateY": 210
}
}
],
"xAdvance": 753
}
},
"Light (layer #0)": {
"glyph": {
"components": [
{
"name": "A"
},
{
"name": "dieresis",
"transformation": {
"translateX": 110,
"translateY": 230
}
}
],
"xAdvance": 593
}
},
"Regular (layer #1)": {
"glyph": {
"components": [
{
"name": "A"
},
{
"name": "dieresis",
"transformation": {
"translateX": 128,
"translateY": 220
}
}
],
"xAdvance": 657
}
}
}
}
Loading

0 comments on commit 309fef4

Please sign in to comment.