Skip to content

Commit edc427f

Browse files
committed
released v1.6.0
1 parent c6d6d4d commit edc427f

7 files changed

+11
-11
lines changed

docs/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Pinyin Font</title>
6+
<title>宝宝字帖拼音字体 Pinyin Font</title>
77
<style>
88
@font-face {
99
font-family: 'pinyinstep';
10-
src: url('./pinyin-step.ttf?v=1.3.0') format('truetype');
10+
src: url('./pinyin-step.ttf?v=1.6.0') format('truetype');
1111
}
1212
@font-face {
1313
font-family: 'pinyin';
14-
src: url('./pinyin-regular.ttf?v=1.5.0') format('truetype');
14+
src: url('./pinyin-regular.ttf?v=1.6.0') format('truetype');
1515
}
1616
body { background-color: #000; color: #fff; }
1717
body, header p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; }
@@ -82,7 +82,7 @@
8282
</a>
8383
<main>
8484
<header>
85-
<h1>宝宝字帖<ruby>拼音字体<rt>Pinyin Font</rt></ruby><sup>v1.2.0</sup></h1>
85+
<h1>宝宝字帖<ruby>拼音字体<rt>Pinyin Font</rt></ruby><sup>v1.6.0</sup></h1>
8686
<p>专门为应用《<a href="https://github.com/jaywcjlove/copybook-generator" target="_blank" title="宝宝字帖 for macOS">宝宝字帖</a>》制作的拼音字体</p>
8787
<a class="download" href="https://github.com/jaywcjlove/pinyin-font/releases" target="_blank">
8888
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi bi-file-earmark-font-fill" viewBox="0 0 16 16" height="1em" width="1em"><path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"></path> </svg>

docs/pinyin-regular.ttf

0 Bytes
Binary file not shown.

docs/pinyin-regular.woff2

12 Bytes
Binary file not shown.

docs/pinyin-step.ttf

0 Bytes
Binary file not shown.

docs/pinyin-step.woff2

12 Bytes
Binary file not shown.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "pinyin-font",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"private": true,
5-
"description": "拼音字母字体",
6-
"homepage": "",
5+
"description": "宝宝字帖拼音字体",
6+
"homepage": "https://jaywcjlove.github.io/pinyin-font/",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/jaywcjlove/pinyin-font"

scripts/main.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function writeFontStream(svgPath, fontStream) {
4141
unicodeName = unicodeName.replace(/_$/g, '');
4242
}
4343
const glyph = fs.createReadStream(svgPath)
44-
console.log(`\n ┌┈▶ ${fileNmae} ${charToSvgFontUnicode(unicodeName)}`);
44+
//console.log(`\n ┌┈▶ ${fileNmae} ${charToSvgFontUnicode(unicodeName)}`);
4545
glyph.metadata = { unicode: [unicodeName] , name: fileNmae };
4646
fontStream.write(glyph);
4747
}
@@ -104,8 +104,8 @@ function ttfTowoff2(src = "./docs/pinyin.ttf", dist = "./docs/pinyin.woff2") {
104104
// Update version in docs/index.html
105105
const pkg = fs.readJsonSync('./package.json');
106106
const fileContent = fs.readFileSync('./docs/index.html', 'utf-8');
107-
let updatedContent = fileContent.replace(/<sup>.*<\/sup>/g, `<sup>v${pkg.version}</sup>`);
108-
updatedContent = fileContent.replace(/url\('.\/pinyin-step\.ttf.*'\)\s/g, `url('./pinyin-step.ttf?v=${pkg.version}') `);
109-
updatedContent = fileContent.replace(/url\('.\/pinyin-regular\.ttf.*'\)\s/g, `url('./pinyin-regular.ttf?v=${pkg.version}') `);
107+
const updatedContent = fileContent.replace(/<sup>.*<\/sup>/g, `<sup>v${pkg.version}</sup>`)
108+
.replace(/url\('.\/pinyin-step\.ttf.*'\)\s/g, `url('./pinyin-step.ttf?v=${pkg.version}') `)
109+
.replace(/url\('.\/pinyin-regular\.ttf.*'\)\s/g, `url('./pinyin-regular.ttf?v=${pkg.version}') `);
110110
fs.writeFileSync('./docs/index.html', updatedContent);
111111
})()

0 commit comments

Comments
 (0)