Optimize math symbols' footprint; Refine shape of angled arrows

This commit is contained in:
be5invis 2020-08-04 23:21:51 -07:00
parent 8b937efbd8
commit 554a180e76
6 changed files with 159 additions and 163 deletions

View file

@ -69,8 +69,8 @@ const TieGlyph = {
const DoNotDeriveVariants = {
get(glyph) {
if (glyph && glyph.related) return glyph.related.DoNotDeriveVariants;
else return null;
if (glyph && glyph.related) return !!glyph.related.DoNotDeriveVariants;
else return false;
},
set(glyph) {
if (!glyph.related) glyph.related = {};
@ -78,6 +78,17 @@ const DoNotDeriveVariants = {
}
};
const Radical = {
get(glyph) {
if (glyph && glyph.related) return !!glyph.related.radical;
else return false;
},
set(glyph) {
if (!glyph.related) glyph.related = {};
glyph.related.radical = true;
}
};
const CvTagCache = new Map();
function Cv(tag) {
if (CvTagCache.has(tag)) return CvTagCache.get(tag);
@ -295,6 +306,7 @@ exports.getGrMesh = getGrMesh;
exports.TieMark = TieMark;
exports.TieGlyph = TieGlyph;
exports.DoNotDeriveVariants = DoNotDeriveVariants;
exports.Radical = Radical;
exports.AnyDerivingCv = AnyDerivingCv;
exports.CcmpDecompose = CcmpDecompose;
exports.CvDecompose = CvDecompose;