Skip to content

Commit

Permalink
Added Custom font
Browse files Browse the repository at this point in the history
  • Loading branch information
omegaleo committed Jun 26, 2022
1 parent 01d9d4b commit 2e76ced
Show file tree
Hide file tree
Showing 15 changed files with 1,323 additions and 1,174 deletions.
1,173 changes: 1,173 additions & 0 deletions Assets/Fonts/ChessWar font SDF.asset

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions Assets/Fonts/ChessWar font.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$baseURI": "https://yal.cc/r/20/pixelfont/",
"$version": "1.0",
"in-glyphs": [
" !\"#$%&'()*+,-./",
"0123456789:;<=>?",
"@ABCDEFGHIJKLMNO",
"PQRSTUVWXYZ[\\]^_",
"`abcdefghijklmno",
"pqrstuvwxyz{|}~∎"
],
"glyph-color": "auto",
"in-kerning": [
""
],
"glyph-width": 17,
"glyph-height": 17,
"glyph-ofs-x": 1,
"glyph-ofs-y": 1,
"glyph-sep-x": 0,
"glyph-sep-y": 0,
"glyph-base-x": 0,
"glyph-baseline": 12,
"glyph-spacing": 4,
"font-is-mono": false,
"font-em-square": 1024,
"font-line-gap": 0,
"font-ascend": 768,
"font-descend": -256,
"font-px-size": 64,
"font-name": "ChessWar font",
"font-author": "Nuno \"Omega Leo\" Diogo",
"font-copy": "(c)",
"font-version": "Version 1.0",
"font-desc": "Sweet fonts to leave your worries behind you",
"font-license": "You have the permission",
"font-license-url": "",
"font-sample-text": "Hello!",
"font-preview-text": [
"1 Player"
]
}
7 changes: 7 additions & 0 deletions Assets/Fonts/ChessWar font.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Fonts/ChessWar font.ttf
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,075 changes: 0 additions & 1,075 deletions Assets/Fonts/CustomFont SDF.asset

This file was deleted.

Binary file removed Assets/Fonts/CustomFont.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions Assets/Prefabs/BorderCell.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ MonoBehaviour:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 385a5edf84649b145b049b98fb05cb99, type: 2}
m_sharedMaterial: {fileID: 3445470077470478641, guid: 385a5edf84649b145b049b98fb05cb99, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 246143435287901796, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand Down
42 changes: 22 additions & 20 deletions Assets/Scenes/Game.unity
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ MonoBehaviour:
m_Calls: []
m_text: Bishop
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -428,7 +428,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &210851561
Expand Down Expand Up @@ -675,7 +675,7 @@ MonoBehaviour:
m_Calls: []
m_text: Queen
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -739,7 +739,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &260331479
Expand Down Expand Up @@ -810,7 +810,7 @@ MonoBehaviour:
m_Calls: []
m_text: Knight
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -874,7 +874,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &264530869
Expand Down Expand Up @@ -1596,7 +1596,7 @@ MonoBehaviour:
m_Calls: []
m_text: RETURN TO TITLESCREEN
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -1660,7 +1660,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &391399515
Expand Down Expand Up @@ -1731,7 +1731,7 @@ MonoBehaviour:
m_Calls: []
m_text: Pawn
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -1795,7 +1795,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &437442059
Expand Down Expand Up @@ -2042,6 +2042,7 @@ MonoBehaviour:
isDraggingPiece: 0
player1Color: {r: 1, g: 1, b: 1, a: 1}
player2Color: {r: 0, g: 0, b: 0, a: 1}
currentColor: {r: 0, g: 0, b: 0, a: 0}
sprites:
- pieceIdentifier: P
whiteSprite: {fileID: -929841066, guid: 7e5d6b4687739cd42b49d3ca6964aa21, type: 3}
Expand Down Expand Up @@ -2189,7 +2190,7 @@ MonoBehaviour:
m_Calls: []
m_text: VICTORY/DEFEAT
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -2253,7 +2254,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &687495940
Expand Down Expand Up @@ -2295,6 +2296,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
botGame: 0
cursorTexture: {fileID: 0}
difficulty: 1
--- !u!4 &729164836
Transform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2771,7 +2773,7 @@ MonoBehaviour:
m_Calls: []
m_text: Pawn Promotion
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -2835,7 +2837,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1045249191
Expand Down Expand Up @@ -3187,7 +3189,7 @@ MonoBehaviour:
m_Calls: []
m_text: Rook
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -3251,7 +3253,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1486974091
Expand Down Expand Up @@ -3874,7 +3876,7 @@ MonoBehaviour:
m_Calls: []
m_text: Pawn
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -3938,7 +3940,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1918973069
Expand Down Expand Up @@ -4069,7 +4071,7 @@ MonoBehaviour:
m_Calls: []
m_text: <sprite=0>REMATCH
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
Expand Down Expand Up @@ -4133,7 +4135,7 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1955782470
Expand Down
Loading

0 comments on commit 2e76ced

Please sign in to comment.