Skip to content

Commit

Permalink
Release 0.36.7
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jul 16, 2022
2 parents 97ee357 + ebcd59d commit 0242119
Show file tree
Hide file tree
Showing 333 changed files with 66 additions and 39 deletions.
12 changes: 8 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"codemetrics.basics.EnabledForJS": false,
"cSpell.enabled": false,
"search.useGlobalIgnoreFiles": true
{
"cSpell.enabled": false,
"search.useGlobalIgnoreFiles": true,
"files.exclude": {
".build/": true,
"node_modules/": true,
"out/": true
}
}
16 changes: 0 additions & 16 deletions make/fe-misc/build.js

This file was deleted.

2 changes: 1 addition & 1 deletion make/non-kanji/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const gc = require("../common/gc");

module.exports = async function pass(argv) {
const a = await introFont({ from: argv.main, prefix: "a", ignoreHints: true });
filterUnicodeRange(a, c => !isIdeograph(c) && !isKorean(c) && !isFEMisc(c));
filterUnicodeRange(a, c => !isIdeograph(c) && !isKorean(c));
a.cvt_ = [];
a.fpgm = [];
a.prep = [];
Expand Down
10 changes: 8 additions & 2 deletions make/punct/as.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

const introFont = require("../common/intro-font");
const buildFont = require("../common/build-font");
const { isWestern, isWS, isLongDash, filterUnicodeRange } = require("../common/unicode-kind");
const {
isWestern,
isWS,
isLongDash,
filterUnicodeRange,
isFEMisc
} = require("../common/unicode-kind");
const gc = require("../common/gc");

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

if (argv.pwid) toPWID(main);
Expand Down
26 changes: 26 additions & 0 deletions make/punct/fe-misc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use strict";

const introFont = require("../common/intro-font");
const buildFont = require("../common/build-font");
const { filterUnicodeRange, isFEMisc, isLongDash, isWestern } = require("../common/unicode-kind");
const gc = require("../common/gc");
const { removeUnusedFeatures } = require("./remove-unused-features");
const { sanitizeSymbols } = require("./sanitize-symbols");

module.exports = async function pass(argv) {
const main = await introFont({ from: argv.main, prefix: "a", ignoreHints: true });
filterUnicodeRange(main, c => isFEMisc(c));
main.cvt_ = [];
main.fpgm = [];
main.prep = [];
if (argv.mono) {
removeUnusedFeatures(main.GPOS, "kern");
removeUnusedFeatures(main.GPOS, "palt");
removeUnusedFeatures(main.GPOS, "vkrn");
removeUnusedFeatures(main.GPOS, "vpal");
}
if (!argv.pwid) sanitizeSymbols(main, argv.goth, !argv.pwid && !argv.term);

gc(main);
await buildFont(main, { to: argv.o, optimize: true });
};
7 changes: 6 additions & 1 deletion make/punct/sanitize-symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ const sanitizerTypes = {
"\u2025": "ellipsis",
"\u2026": "ellipsis",
"\u2e3a": "halfComp2",
"\u2e3b": "halfComp3"
"\u2e3b": "halfComp3",
"\u31b4": "half",
"\u31b5": "half",
"\u31b6": "half",
"\u31b7": "half",
"\u31bb": "half"
};

exports.sanitizeSymbols = function sanitizeSymbols(font, isGothic, isType) {
Expand Down
10 changes: 8 additions & 2 deletions make/punct/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

const introFont = require("../common/intro-font");
const buildFont = require("../common/build-font");
const { isWestern, isWS, isLongDash, filterUnicodeRange } = require("../common/unicode-kind");
const {
isWestern,
isWS,
isLongDash,
filterUnicodeRange,
isFEMisc
} = require("../common/unicode-kind");
const gc = require("../common/gc");

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

if (argv.pwid) toPWID(main);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sarasa-gothic",
"version": "0.36.6",
"version": "0.36.7",
"main": "./run",
"scripts": {
"build": "verda -f verdafile.js",
Expand Down
Loading

0 comments on commit 0242119

Please sign in to comment.