Skip to content

Commit

Permalink
Merge branch 'master' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jan 16, 2018
2 parents 3d48769 + 4187ac7 commit 6d66cdd
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# .prettierrc
printWidth: 100
useTabs: true
tabWidth: 4
16 changes: 8 additions & 8 deletions bddy.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function deItalizedNameOf(set) {
.join("-");
}

module.exports = function(ctx, the, argv, bddy) {
module.exports = function(ctx, the) {
the.file(`out/ttf/${PREFIX}-*-*-*.ttf`).def(async function(target) {
const { $1: family, $2: region, $3: style } = target;
const [_, $1, $2] = await this.need(
Expand Down Expand Up @@ -167,7 +167,10 @@ module.exports = function(ctx, the, argv, bddy) {
the.file(`build/kanji0/*.ttf`).def(async function(target) {
const [_, $1] = await this.need(target.dir, `build/shs/${target.name}.otd`);
const tmpOTD = `${target.dir}/${target.name}.otd`;
await runBuildTask.call(this, "make/kanji/build.js", { main: $1, o: tmpOTD });
await runBuildTask.call(this, "make/kanji/build.js", {
main: $1,
o: tmpOTD
});
await this.run("otfccbuild", tmpOTD, "-o", target, "-q");
await this.rm(tmpOTD);
});
Expand Down Expand Up @@ -274,12 +277,9 @@ module.exports = function(ctx, the, argv, bddy) {
`*.ttf`
);
});
the.virt("start").def(async function(target) {
await this.need(
`out/sarasa-gothic-ttc-${version}.7z`,
`out/sarasa-gothic-ttf-${version}.7z`
);
});

ctx.want(`out/sarasa-gothic-ttc-${version}.7z`);
ctx.want(`out/sarasa-gothic-ttf-${version}.7z`);

// cleanup
the.virt("clean").def(async function(target) {
Expand Down
12 changes: 11 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"prefix": "sarasa",
"CVT_PADDING": 300,

"familyOrder": ["gothic", "ui", "mono"],
"familyOrder": ["gothic", "ui", "mono", "term"],
"families": {
"gothic": {
"isMono": false,
Expand Down Expand Up @@ -34,6 +34,16 @@
"zh_TW": "等距更紗黑體",
"ja_JP": "更紗等幅ゴシック"
}
},
"term": {
"isMono": true,
"latinGroup": "iosevka-term",
"naming": {
"en_US": "Sarasa Term",
"zh_CN": "Sarasa Term",
"zh_TW": "Sarasa Term",
"ja_JP": "Sarasa Term"
}
}
},

Expand Down
2 changes: 1 addition & 1 deletion hint/bddy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const CONFIG_PATH = __dirname + "/source/fonts.json";
const os = require("os");
const jHint = os.cpus().length * 2;

module.exports = function(ctx, forany, argv, bddy) {
module.exports = function(ctx, forany, the, argv, bddy) {
const config = JSON.parse(fs.readFileSync(CONFIG_PATH, "utf-8"));
const stylegroups = sg.stylegroupsOf(config);
sg.initParamfiles(stylegroups, config);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sarasa-gothic",
"version": "0.4.0",
"version": "0.5.0",
"main": "./run",
"dependencies": {
"caryll-iddb": "^0.1.2",
Expand All @@ -19,7 +19,7 @@
"scc-config": "^0.9.3",
"which": "^1.2.14",
"yargs": "^9.0.0",
"bddy": "^0.8.0",
"bddy": "^0.9.0",
"colors": "^1.1.2"
},
"engines": {
Expand Down
Binary file added sources/iosevka-term/iosevka-term-bold.ttf
Binary file not shown.
Binary file added sources/iosevka-term/iosevka-term-bolditalic.ttf
Binary file not shown.
Binary file added sources/iosevka-term/iosevka-term-italic.ttf
Binary file not shown.
Binary file added sources/iosevka-term/iosevka-term-regular.ttf
Binary file not shown.
Binary file modified sources/iosevka/iosevka-bold.ttf
Binary file not shown.
Binary file modified sources/iosevka/iosevka-bolditalic.ttf
Binary file not shown.
Binary file modified sources/iosevka/iosevka-italic.ttf
Binary file not shown.
Binary file modified sources/iosevka/iosevka-regular.ttf
Binary file not shown.

0 comments on commit 6d66cdd

Please sign in to comment.