Browse Source

Tomoni: replace with noto JP with variable font (#7168)

* Use variable font.

* Fix font face names.

* Restore fontFamily Noto Sans JP fallback.
Jeff Ong 2 years ago
parent
commit
60fda88a37

BIN
tomoni/assets/fonts/noto-sans-jp_normal_100-900.ttf


BIN
tomoni/assets/fonts/noto-sans-jp_normal_100.otf


BIN
tomoni/assets/fonts/noto-sans-jp_normal_300.otf


BIN
tomoni/assets/fonts/noto-sans-jp_normal_400.otf


BIN
tomoni/assets/fonts/noto-sans-jp_normal_500.otf


BIN
tomoni/assets/fonts/noto-sans-jp_normal_700.otf


BIN
tomoni/assets/fonts/noto-sans-jp_normal_900.otf


+ 8 - 1
tomoni/readme.txt

@@ -34,4 +34,11 @@ GNU General Public License for more details.
 This theme bundles the following third-party resources:
 
 Noto Sans from Google Fonts, Open Font License (https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
-https://fonts.google.com/noto/specimen/Noto+Sans
+https://fonts.google.com/noto/specimen/Noto+Sans
+
+Noto Sans JP Font
+(c) 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. 
+This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: https://scripts.sil.org/OFL 
+License URL: http://scripts.sil.org/OFL 
+Source: http://www.adobe.com/type/
+-- End of Noto Sans JP Font credits --

+ 14 - 54
tomoni/theme.json

@@ -102,60 +102,6 @@
 			"dropCap": true,
 			"fluid": true,
 			"fontFamilies": [
-				{
-					"fontFace": [
-						{
-							"fontFamily": "Noto Sans JP",
-							"fontStyle": "normal",
-							"fontWeight": "100",
-							"src": [
-								"file:./assets/fonts/noto-sans-jp_normal_100.otf"
-							]
-						},
-						{
-							"fontFamily": "Noto Sans JP",
-							"fontStyle": "normal",
-							"fontWeight": "300",
-							"src": [
-								"file:./assets/fonts/noto-sans-jp_normal_300.otf"
-							]
-						},
-						{
-							"fontFamily": "Noto Sans JP",
-							"fontStyle": "normal",
-							"fontWeight": "400",
-							"src": [
-								"file:./assets/fonts/noto-sans-jp_normal_400.otf"
-							]
-						},
-						{
-							"fontFamily": "Noto Sans JP",
-							"fontStyle": "normal",
-							"fontWeight": "500",
-							"src": [
-								"file:./assets/fonts/noto-sans-jp_normal_500.otf"
-							]
-						},
-						{
-							"fontFamily": "Noto Sans JP",
-							"fontStyle": "normal",
-							"fontWeight": "700",
-							"src": [
-								"file:./assets/fonts/noto-sans-jp_normal_700.otf"
-							]
-						},
-						{
-							"fontFamily": "Noto Sans JP",
-							"fontStyle": "normal",
-							"fontWeight": "900",
-							"src": [
-								"file:./assets/fonts/noto-sans-jp_normal_900.otf"
-							]
-						}
-					],
-					"fontFamily": "Noto Sans JP",
-					"slug": "noto-sans-jp"
-				},
 				{
 					"fontFace": [
 						{
@@ -305,6 +251,20 @@
 					],
 					"fontFamily": "Noto Sans, Noto Sans JP",
 					"slug": "noto-sans"
+				},
+				{
+					"fontFace": [
+						{
+							"fontFamily": "Noto Sans JP",
+							"fontWeight": "100 900",
+							"fontStyle": "normal",
+							"src": [
+								"file:./assets/fonts/noto-sans-jp_normal_100-900.ttf"
+							]
+						}
+					],
+					"fontFamily": "Noto Sans JP",
+					"slug": "noto-sans-jp"
 				}
 			],
 			"fontSizes": [