Skip to content

Commit 0242119

Browse files
committed
Release 0.36.7
2 parents 97ee357 + ebcd59d commit 0242119

File tree

333 files changed

+66
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+66
-39
lines changed

.vscode/settings.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
{
2-
"codemetrics.basics.EnabledForJS": false,
3-
"cSpell.enabled": false,
4-
"search.useGlobalIgnoreFiles": true
1+
{
2+
"cSpell.enabled": false,
3+
"search.useGlobalIgnoreFiles": true,
4+
"files.exclude": {
5+
".build/": true,
6+
"node_modules/": true,
7+
"out/": true
8+
}
59
}

make/fe-misc/build.js

-16
This file was deleted.

make/non-kanji/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const gc = require("../common/gc");
77

88
module.exports = async function pass(argv) {
99
const a = await introFont({ from: argv.main, prefix: "a", ignoreHints: true });
10-
filterUnicodeRange(a, c => !isIdeograph(c) && !isKorean(c) && !isFEMisc(c));
10+
filterUnicodeRange(a, c => !isIdeograph(c) && !isKorean(c));
1111
a.cvt_ = [];
1212
a.fpgm = [];
1313
a.prep = [];

make/punct/as.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
const introFont = require("../common/intro-font");
44
const buildFont = require("../common/build-font");
5-
const { isWestern, isWS, isLongDash, filterUnicodeRange } = require("../common/unicode-kind");
5+
const {
6+
isWestern,
7+
isWS,
8+
isLongDash,
9+
filterUnicodeRange,
10+
isFEMisc
11+
} = require("../common/unicode-kind");
612
const gc = require("../common/gc");
713

814
const { sanitizeSymbols, toPWID } = require("./sanitize-symbols");
@@ -15,7 +21,7 @@ module.exports = async function makeFont(argv) {
1521
main.cmap_uvs = null;
1622
filterUnicodeRange(
1723
main,
18-
c => !isWestern(c - 0) && !isLongDash(c - 0, argv.term) && !isWS(c - 0)
24+
c => !isWestern(c - 0) && !isLongDash(c - 0, argv.term) && !isWS(c - 0) && !isFEMisc(c - 0)
1925
);
2026

2127
if (argv.pwid) toPWID(main);

make/punct/fe-misc.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"use strict";
2+
3+
const introFont = require("../common/intro-font");
4+
const buildFont = require("../common/build-font");
5+
const { filterUnicodeRange, isFEMisc, isLongDash, isWestern } = require("../common/unicode-kind");
6+
const gc = require("../common/gc");
7+
const { removeUnusedFeatures } = require("./remove-unused-features");
8+
const { sanitizeSymbols } = require("./sanitize-symbols");
9+
10+
module.exports = async function pass(argv) {
11+
const main = await introFont({ from: argv.main, prefix: "a", ignoreHints: true });
12+
filterUnicodeRange(main, c => isFEMisc(c));
13+
main.cvt_ = [];
14+
main.fpgm = [];
15+
main.prep = [];
16+
if (argv.mono) {
17+
removeUnusedFeatures(main.GPOS, "kern");
18+
removeUnusedFeatures(main.GPOS, "palt");
19+
removeUnusedFeatures(main.GPOS, "vkrn");
20+
removeUnusedFeatures(main.GPOS, "vpal");
21+
}
22+
if (!argv.pwid) sanitizeSymbols(main, argv.goth, !argv.pwid && !argv.term);
23+
24+
gc(main);
25+
await buildFont(main, { to: argv.o, optimize: true });
26+
};

make/punct/sanitize-symbols.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ const sanitizerTypes = {
109109
"\u2025": "ellipsis",
110110
"\u2026": "ellipsis",
111111
"\u2e3a": "halfComp2",
112-
"\u2e3b": "halfComp3"
112+
"\u2e3b": "halfComp3",
113+
"\u31b4": "half",
114+
"\u31b5": "half",
115+
"\u31b6": "half",
116+
"\u31b7": "half",
117+
"\u31bb": "half"
113118
};
114119

115120
exports.sanitizeSymbols = function sanitizeSymbols(font, isGothic, isType) {

make/punct/ws.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
const introFont = require("../common/intro-font");
44
const buildFont = require("../common/build-font");
5-
const { isWestern, isWS, isLongDash, filterUnicodeRange } = require("../common/unicode-kind");
5+
const {
6+
isWestern,
7+
isWS,
8+
isLongDash,
9+
filterUnicodeRange,
10+
isFEMisc
11+
} = require("../common/unicode-kind");
612
const gc = require("../common/gc");
713

814
const { sanitizeSymbols, toPWID } = require("./sanitize-symbols");
@@ -16,7 +22,7 @@ module.exports = async function makeFont(argv) {
1622
main.cmap_uvs = null;
1723
filterUnicodeRange(
1824
main,
19-
c => !isWestern(c - 0) && !isLongDash(c - 0, argv.term) && isWS(c - 0)
25+
c => !isWestern(c - 0) && !isLongDash(c - 0, argv.term) && isWS(c - 0) && !isFEMisc(c - 0)
2026
);
2127

2228
if (argv.pwid) toPWID(main);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sarasa-gothic",
3-
"version": "0.36.6",
3+
"version": "0.36.7",
44
"main": "./run",
55
"scripts": {
66
"build": "verda -f verdafile.js",

0 commit comments

Comments
 (0)