Skip to content

Commit

Permalink
Deliver font parameters as JSON data #38
Browse files Browse the repository at this point in the history
  • Loading branch information
qrac committed Mar 8, 2021
1 parent 55c4634 commit 7230b98
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 15 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ font-family(CSS)のフォールバック機能を利用し、文字幅を調

| フォント名 | HTML に貼る CDN リンクタグ |
| :----------: | ---------------------------------------------------------------------------------------------------------- |
| `YakuHanJP` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanjp.min.css">` |
| `YakuHanJPs` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanjp_s.min.css">` |
| `YakuHanMP` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanmp.min.css">` |
| `YakuHanMPs` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanmp_s.min.css">` |
| `YakuHanRP` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanrp.min.css">` |
| `YakuHanRPs` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanrp_s.min.css">` |
| `YakuHanJP` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp.min.css">` |
| `YakuHanJPs` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp_s.min.css">` |
| `YakuHanMP` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanmp.min.css">` |
| `YakuHanMPs` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanmp_s.min.css">` |
| `YakuHanRP` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanrp.min.css">` |
| `YakuHanRPs` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanrp_s.min.css">` |

## [npm](https://www.npmjs.com/package/yakuhanjp)

Expand Down Expand Up @@ -115,7 +115,7 @@ $ npm i yakuhanjp
| `$yakuhanjp-swap-use` | `boolean` | `true` |
| `$yakuhanjp-eot-use` | `boolean` | `true` |
| `$yakuhanjp-cdn-use` | `boolean` | `false` |
| `$yakuhanjp-cdn-version` | `string` | `3.4.0` |
| `$yakuhanjp-cdn-version` | `string` | `3.4.1` |
| `$yakuhanjp-unicode-range-use` | `boolean` | `true` |
| `$yakuhanjp-unicode` | `array` | `U+3001, U+3002...` etc. |
| `$yakuhanjp-weight` | `object` | `100:"Thin", 200:"Light" ...` etc. |
Expand All @@ -138,10 +138,10 @@ $ npm i yakuhanjp

| フォント名 | HTML に貼る CDN リンクタグ |
| :---------------: | --------------------------------------------------------------------------------------------------------------- |
| `YakuHanJP_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanjp-noto.min.css">` |
| `YakuHanJPs_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanjp_s-noto.min.css">` |
| `YakuHanMP_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanmp-noto.min.css">` |
| `YakuHanMPs_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanmp_s-noto.min.css">` |
| `YakuHanJP_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp-noto.min.css">` |
| `YakuHanJPs_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp_s-noto.min.css">` |
| `YakuHanMP_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanmp-noto.min.css">` |
| `YakuHanMPs_Noto` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanmp_s-noto.min.css">` |

| フォント名 | JavaScript に書く `import`|
| :---------------: | -------------------------------------------------- |
Expand All @@ -165,8 +165,8 @@ macOS 10.13・iOS11 以降の Safari では、`font-family` に `-apple-system`

| フォント名 | HTML に貼る CDN リンクタグ |
| :-----------------: | ----------------------------------------------------------------------------------------------------------------- |
| `YakuHanJP_Narrow` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanjp-narrow.min.css">` |
| `YakuHanJPs_Narrow` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.0/dist/css/yakuhanjp_s-narrow.min.css">` |
| `YakuHanJP_Narrow` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp-narrow.min.css">` |
| `YakuHanJPs_Narrow` | `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/yakuhanjp@3.4.1/dist/css/yakuhanjp_s-narrow.min.css">` |

| フォント名 | JavaScript に書く `import`|
| :-----------------: | ---------------------------------------------------- |
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "yakuhanjp",
"description": "Yakumono-Hankaku Only Web Fonts",
"version": "3.4.0",
"version": "3.4.1",
"main": "dist/css/yakuhanjp.css",
"files": [
"dist"
"dist",
"project.json"
],
"license": "(OFL-1.1 AND MIT)",
"homepage": "https://yakuhanjp.qranoko.jp",
Expand Down
168 changes: 168 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
"name": "yakuhanjp",
"variable": "yakuhanjp"
},
"style": {
"name": "ゴシック体",
"variable": "sans-serif"
},
"target": {
"name": "約物すべて",
"variable": "all",
"small": false
},
"specific": {
"name": "",
"variable": "",
"edition": false
},
"glyphs": "、。!?〈〉《》「」『』【】〔〕・():;[]{}",
"weights": {
"100": "Thin",
Expand All @@ -28,6 +42,20 @@
"name": "yakuhanjp_s",
"variable": "yakuhanjps"
},
"style": {
"name": "ゴシック体",
"variable": "sans-serif"
},
"target": {
"name": "カッコのみ",
"variable": "small",
"small": true
},
"specific": {
"name": "",
"variable": "",
"edition": false
},
"glyphs": "〈〉《》「」『』【】〔〕()[]{}",
"weights": {
"100": "Thin",
Expand All @@ -47,6 +75,20 @@
"name": "yakuhanmp",
"variable": "yakuhanmp"
},
"style": {
"name": "明朝体",
"variable": "serif"
},
"target": {
"name": "約物すべて",
"variable": "all",
"small": false
},
"specific": {
"name": "",
"variable": "",
"edition": false
},
"glyphs": "、。!?《》「」『』【】〔〕・():;[]{}",
"weights": {
"100": "ExtraLight",
Expand All @@ -66,6 +108,20 @@
"name": "yakuhanmp_s",
"variable": "yakuhanmps"
},
"style": {
"name": "明朝体",
"variable": "serif"
},
"target": {
"name": "カッコのみ",
"variable": "small",
"small": true
},
"specific": {
"name": "",
"variable": "",
"edition": false
},
"glyphs": "《》「」『』【】〔〕()[]{}",
"weights": {
"100": "ExtraLight",
Expand All @@ -85,6 +141,20 @@
"name": "yakuhanrp",
"variable": "yakuhanrp"
},
"style": {
"name": "丸ゴシック",
"variable": "rounded-sans-serif"
},
"target": {
"name": "約物すべて",
"variable": "all",
"small": false
},
"specific": {
"name": "",
"variable": "",
"edition": false
},
"glyphs": "、。!?〈〉《》「」『』【】〔〕・():;[]{}",
"weights": {
"100": "Thin",
Expand All @@ -104,6 +174,20 @@
"name": "yakuhanrp_s",
"variable": "yakuhanrps"
},
"style": {
"name": "丸ゴシック",
"variable": "rounded-sans-serif"
},
"target": {
"name": "カッコのみ",
"variable": "small",
"small": true
},
"specific": {
"name": "",
"variable": "",
"edition": false
},
"glyphs": "〈〉《》「」『』【】〔〕()[]{}",
"weights": {
"100": "Thin",
Expand All @@ -123,6 +207,20 @@
"name": "yakuhanjp-noto",
"variable": "yakuhanjp-noto"
},
"style": {
"name": "ゴシック体",
"variable": "sans-serif"
},
"target": {
"name": "約物すべて",
"variable": "all",
"small": false
},
"specific": {
"name": "for Noto",
"variable": "noto",
"edition": true
},
"glyphs": "、。!?〈〉《》「」『』【】〔〕・():;[]{}",
"weights": {
"100": "Thin",
Expand All @@ -141,6 +239,20 @@
"name": "yakuhanjp_s-noto",
"variable": "yakuhanjps-noto"
},
"style": {
"name": "ゴシック体",
"variable": "sans-serif"
},
"target": {
"name": "カッコのみ",
"variable": "small",
"small": true
},
"specific": {
"name": "for Noto",
"variable": "noto",
"edition": true
},
"glyphs": "〈〉《》「」『』【】〔〕()[]{}",
"weights": {
"100": "Thin",
Expand All @@ -159,6 +271,20 @@
"name": "yakuhanmp-noto",
"variable": "yakuhanmp-noto"
},
"style": {
"name": "明朝体",
"variable": "serif"
},
"target": {
"name": "約物すべて",
"variable": "all",
"small": false
},
"specific": {
"name": "for Noto",
"variable": "noto",
"edition": true
},
"glyphs": "、。!?《》「」『』【】〔〕・():;[]{}",
"weights": {
"200": "ExtraLight",
Expand All @@ -178,6 +304,20 @@
"name": "yakuhanmp_s-noto",
"variable": "yakuhanmps-noto"
},
"style": {
"name": "明朝体",
"variable": "serif"
},
"target": {
"name": "カッコのみ",
"variable": "small",
"small": true
},
"specific": {
"name": "for Noto",
"variable": "noto",
"edition": true
},
"glyphs": "《》「」『』【】〔〕()[]{}",
"weights": {
"200": "ExtraLight",
Expand All @@ -197,6 +337,20 @@
"name": "yakuhanjp-narrow",
"variable": "yakuhanjp-narrow"
},
"style": {
"name": "ゴシック体",
"variable": "sans-serif"
},
"target": {
"name": "約物すべて",
"variable": "all",
"small": false
},
"specific": {
"name": "for Narrow",
"variable": "narrow",
"edition": true
},
"glyphs": "、。!?〈〉《》「」『』【】〔〕・():;[]{}",
"weights": {
"100": "Thin",
Expand All @@ -218,6 +372,20 @@
"name": "yakuhanjp_s-narrow",
"variable": "yakuhanjps-narrow"
},
"style": {
"name": "ゴシック体",
"variable": "sans-serif"
},
"target": {
"name": "カッコのみ",
"variable": "small",
"small": true
},
"specific": {
"name": "for Narrow",
"variable": "narrow",
"edition": true
},
"glyphs": "〈〉《》「」『』【】〔〕()[]{}",
"weights": {
"100": "Thin",
Expand Down

0 comments on commit 7230b98

Please sign in to comment.