Skip to content

Commit

Permalink
Added SGA font (enchanting table language) (#178)
Browse files Browse the repository at this point in the history
* enchant font

* font stuff

* changed id to '-' instead of '_' and removed name

* removed extra file, added overlay texture, fixed a mistake in the flat texture

* changed preview to "abh"

* compiled font

* added outline overlay to textures.json

* flipped Y axis of tops and bottoms of characters, and adjusted the edge coords

* added a default spacing size

* set character spacing, and re-compiled font

* flipped incorrect faces

* recompiled font
  • Loading branch information
westbot657 authored Aug 31, 2024
1 parent ec7fb61 commit 4bfe36d
Show file tree
Hide file tree
Showing 40 changed files with 9,741 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
scripts/node_modules/
scripts/temp/
scripts/log/
scripts/log/
node_modules/
18 changes: 18 additions & 0 deletions fonts.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,23 @@
[128, 144, 188, 204]
],
"terminatorSpace": true
},
{
"id": "minecraft-sga",
"author": "Westbot",
"height": 44,
"border": 268,
"characterSpacing": 5,
"preview": "abh",
"faces": [
[22, 63]
],
"ends": [
[0, 22, 63, 86]
],
"example": [
"enchanting",
"minecraft"
]
}
]
1 change: 1 addition & 0 deletions fonts/minecraft-sga/characters.json

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions fonts/minecraft-sga/characters/a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"credit": "By Westbot",
"texture_size": [1000, 320],
"textures": {
"0": "minecraft-sga:flat",
"particle": "minecraft-sga:flat"
},
"elements": [
{
"from": [-7, 2, -3],
"to": [23, 44, 19],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 2, 7]},
"faces": {
"north": {"uv": [0, 1.1, 0.48, 3.2], "texture": "#0"},
"south": {"uv": [0.48, 1.1, 0, 3.2], "texture": "#0"},
"up": {"uv": [0.48, 1.1, 0, 0], "texture": "#0"},
"down": {"uv": [0.48, 4.3, 0, 3.2], "texture": "#0"}
}
},
{
"from": [19, 10, -5],
"to": [9, 40, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [44, 0, -5]},
"faces": {
"north": {"uv": [0.016, 4.408, 0.032, 4.424], "texture": "#0"},
"east": {"uv": [0.152, 4.7, 0.168, 5.45], "texture": "#0"},
"south": {"uv": [0.016, 4.408, 0.032, 4.424], "texture": "#0"},
"west": {"uv": [0.016, 4.408, 0.032, 4.424], "texture": "#0"},
"up": {"uv": [0.816, 5.432, 0.976, 5.48], "texture": "#0"}
}
},
{
"from": [25, 0, -5],
"to": [9, 10, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [25, 0, 0]},
"faces": {
"north": {"uv": [1.424, 5.224, 1.456, 5.256], "texture": "#0"},
"east": {"uv": [1.616, 5.128, 1.632, 5.144], "texture": "#0"},
"south": {"uv": [1.632, 5.032, 1.648, 5.048], "texture": "#0"},
"west": {"uv": [1.6, 5, 1.632, 5.032], "texture": "#0"},
"up": {"uv": [1.584, 4.904, 1.84, 4.968], "texture": "#0"},
"down": {"uv": [1.616, 5.064, 1.648, 5.096], "texture": "#0"}
}
},
{
"from": [13, 36, -5],
"to": [-3, 46, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 36, 0]},
"faces": {
"north": {"uv": [1.568, 5.176, 1.584, 5.192], "texture": "#0"},
"east": {"uv": [1.36, 5.304, 1.392, 5.464], "texture": "#0"},
"south": {"uv": [1.616, 5.016, 1.632, 5.032], "texture": "#0"},
"west": {"uv": [1.36, 5.304, 1.392, 5.464], "texture": "#0"},
"up": {"uv": [1.632, 5.064, 1.648, 5.08], "texture": "#0"},
"down": {"uv": [0, 5.5, 0.256, 5.55], "texture": "#0"}
}
},
{
"from": [1, 30, -5],
"to": [-9, 40, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [1, 30, 0]},
"faces": {
"north": {"uv": [1.632, 5.05, 1.648, 5.1], "texture": "#0"},
"east": {"uv": [1.632, 5.05, 1.648, 5.1], "texture": "#0"},
"south": {"uv": [1.632, 5.05, 1.648, 5.1], "texture": "#0"},
"west": {"uv": [0.16, 4.6, 0.176, 5.1], "texture": "#0"},
"up": {"uv": [1.744, 5.15, 1.584, 5.3], "texture": "#0"},
"down": {"uv": [1.632, 5.05, 1.648, 5.1], "texture": "#0"}
}
}
]
}
72 changes: 72 additions & 0 deletions fonts/minecraft-sga/characters/b.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"credit": "By Westbot",
"texture_size": [1000, 320],
"textures": {
"0": "minecraft_sga:flat",
"particle": "minecraft_sga:flat"
},
"elements": [
{
"from": [-7, 2, -3],
"to": [23, 44, 19],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 2, 7]},
"faces": {
"north": {"uv": [0.512, 1.1, 0.992, 3.2], "texture": "#0"},
"south": {"uv": [0.992, 1.1, 0.512, 3.2], "texture": "#0"},
"up": {"uv": [0.992, 1.1, 0.512, 0], "texture": "#0"},
"down": {"uv": [0.992, 4.3, 0.512, 3.2], "texture": "#0"}
}
},
{
"from": [25, 0, -5],
"to": [-9, 10, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [25, 0, -5]},
"faces": {
"north": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"east": {"uv": [1.616, 5.2, 1.648, 5.3], "texture": "#0"},
"south": {"uv": [1.632, 5.2, 1.664, 5.3], "texture": "#0"},
"west": {"uv": [1.616, 5.15, 1.648, 5.25], "texture": "#0"},
"up": {"uv": [1.296, 4.85, 1.84, 4.9], "texture": "#0"},
"down": {"uv": [1.616, 5.15, 1.648, 5.25], "texture": "#0"}
}
},
{
"from": [1, 10, -5],
"to": [-9, 16, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [1, 10, 0]},
"faces": {
"north": {"uv": [1.616, 5.15, 1.632, 5.2], "texture": "#0"},
"east": {"uv": [1.344, 5.25, 1.36, 5.3], "texture": "#0"},
"south": {"uv": [1.616, 5.15, 1.632, 5.2], "texture": "#0"},
"west": {"uv": [0.16, 4.6, 0.176, 4.9], "texture": "#0"},
"up": {"uv": [1.232, 5.2, 1.392, 5.25], "texture": "#0"}
}
},
{
"from": [7, 12, -5],
"to": [-3, 22, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 12, 0]},
"faces": {
"north": {"uv": [1.632, 5.2, 1.648, 5.25], "texture": "#0"},
"east": {"uv": [0.16, 5.1, 0.176, 4.6], "texture": "#0"},
"south": {"uv": [1.632, 5.2, 1.648, 5.25], "texture": "#0"},
"west": {"uv": [0.16, 4.6, 0.176, 5.1], "texture": "#0"},
"up": {"uv": [1.232, 5.2, 1.392, 5.25], "texture": "#0"},
"down": {"uv": [1.392, 5.2, 1.232, 5.25], "texture": "#0"}
}
},
{
"from": [13, 18, -5],
"to": [3, 46, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 18, 0]},
"faces": {
"north": {"uv": [1.632, 5.2, 1.648, 5.25], "texture": "#0"},
"east": {"uv": [1.36, 4.8, 1.376, 5.5], "texture": "#0"},
"south": {"uv": [1.632, 5.2, 1.648, 5.25], "texture": "#0"},
"west": {"uv": [1.632, 5.2, 1.648, 5.25], "texture": "#0"},
"up": {"uv": [1.632, 5.2, 1.648, 5.25], "texture": "#0"},
"down": {"uv": [1.392, 5.2, 1.232, 5.25], "texture": "#0"}
}
}
]
}
47 changes: 47 additions & 0 deletions fonts/minecraft-sga/characters/c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"credit": "By Westbot",
"texture_size": [1000, 320],
"textures": {
"0": "minecraft_sga:flat",
"particle": "minecraft_sga:flat"
},
"elements": [
{
"from": [2, 2, -3],
"to": [14, 44, 19],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 2, 7]},
"faces": {
"north": {"uv": [1.024, 1.1, 1.216, 3.2], "texture": "#0"},
"south": {"uv": [1.216, 1.1, 1.024, 3.2], "texture": "#0"},
"up": {"uv": [1.216, 1.1, 1.024, 0], "texture": "#0"},
"down": {"uv": [1.216, 4.3, 1.024, 3.2], "texture": "#0"}
}
},
{
"from": [10, 0, -5],
"to": [0, 22, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 0]},
"faces": {
"north": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"east": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"south": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"west": {"uv": [0.16, 4.55, 0.176, 5.1], "texture": "#0"},
"up": {"uv": [1.232, 5.2, 1.392, 5.25], "texture": "#0"},
"down": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"}
}
},
{
"from": [16, 12, -5],
"to": [6, 46, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [16, 12, 0]},
"faces": {
"north": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"east": {"uv": [1.6, 4.8, 1.616, 5.65], "texture": "#0"},
"south": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"west": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"up": {"uv": [1.632, 5.15, 1.648, 5.2], "texture": "#0"},
"down": {"uv": [1.392, 5.2, 1.232, 5.25], "texture": "#0"}
}
}
]
}
73 changes: 73 additions & 0 deletions fonts/minecraft-sga/characters/d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"credit": "By Westbot",
"texture_size": [1000, 320],
"textures": {
"0": "minecraft_sga:flat",
"particle": "minecraft_sga:flat"
},
"elements": [
{
"from": [-7, 14, -3],
"to": [23, 44, 19],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 2, 7]},
"faces": {
"north": {"uv": [1.248, 1.1, 1.728, 2.6], "texture": "#0"},
"south": {"uv": [1.728, 1.1, 1.248, 2.6], "texture": "#0"},
"up": {"uv": [1.728, 1.1, 1.248, 0], "texture": "#0"},
"down": {"uv": [1.728, 4.3, 1.248, 3.2], "texture": "#0"}
}
},
{
"from": [25, 36, -5],
"to": [-9, 46, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [25, 36, 0]},
"faces": {
"north": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"east": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"south": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"west": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"up": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"down": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"}
}
},
{
"from": [25, 24, -5],
"to": [9, 34, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [9, 24, 0]},
"faces": {
"north": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"east": {"uv": [1.648, 5.1, 1.664, 5.6], "texture": "#0"},
"south": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"west": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"up": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"down": {"uv": [1.584, 5.05, 1.712, 5.1], "texture": "#0"}
}
},
{
"from": [7, 12, -5],
"to": [-9, 22, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [-9, 12, 0]},
"faces": {
"north": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"east": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"south": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"west": {"uv": [1.648, 5.6, 1.664, 5.1], "texture": "#0"},
"up": {"uv": [1.712, 5.05, 1.584, 5.1], "texture": "#0"},
"down": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"}
}
},
{
"from": [13, 18, -5],
"to": [3, 28, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [6, 18, 0]},
"faces": {
"north": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"east": {"uv": [1.648, 5.1, 1.664, 5.6], "texture": "#0"},
"south": {"uv": [1.616, 5.1, 1.632, 5.15], "texture": "#0"},
"west": {"uv": [1.648, 5.6, 1.664, 5.1], "texture": "#0"},
"up": {"uv": [1.744, 5.2, 1.584, 5.25], "texture": "#0"},
"down": {"uv": [1.584, 5.2, 1.744, 5.25], "texture": "#0"}
}
}
]
}
59 changes: 59 additions & 0 deletions fonts/minecraft-sga/characters/e.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"credit": "By Westbot",
"texture_size": [1000, 320],
"textures": {
"0": "minecraft_sga:flat",
"particle": "minecraft_sga:flat"
},
"elements": [
{
"from": [-7, 2, -3],
"to": [23, 44, 19],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 2, 7]},
"faces": {
"north": {"uv": [1.76, 1.1, 2.24, 3.2], "texture": "#0"},
"south": {"uv": [2.24, 1.1, 1.76, 3.2], "texture": "#0"},
"up": {"uv": [2.24, 1.1, 1.76, 0], "texture": "#0"},
"down": {"uv": [2.24, 4.3, 1.76, 3.2], "texture": "#0"}
}
},
{
"from": [25, 0, -5],
"to": [-9, 10, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [25, 0, 0]},
"faces": {
"north": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"east": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"south": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"west": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"up": {"uv": [1.76, 5.25, 1.488, 5.3], "texture": "#0"},
"down": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"}
}
},
{
"from": [25, 10, -5],
"to": [15, 46, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [49, 10, 0]},
"faces": {
"north": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"east": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"south": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"west": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"up": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"}
}
},
{
"from": [1, 36, -5],
"to": [-9, 46, 21],
"rotation": {"angle": 0, "axis": "y", "origin": [25, 10, 0]},
"faces": {
"north": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"east": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"south": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"west": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"up": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"},
"down": {"uv": [1.632, 5.25, 1.648, 5.3], "texture": "#0"}
}
}
]
}
Loading

0 comments on commit 4bfe36d

Please sign in to comment.