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

* Use variable font.

* Fix font face names.

* Restore fontFamily Noto Sans JP fallback.
This commit is contained in:
Jeff Ong 2023-06-29 14:12:19 -04:00 committed by GitHub
parent 85338925a6
commit 60fda88a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 55 deletions

Binary file not shown.

View file

@ -35,3 +35,10 @@ 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
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 --

View file

@ -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": [