Rename the cache file to reduce space usage

This commit is contained in:
be5invis 2024-03-14 17:39:47 -07:00
parent 2a19d923a7
commit 318984d4ad

View file

@ -424,7 +424,7 @@ const DistUnhintedTTF = file.make(
// Ab-initio build // Ab-initio build
const cacheFileName = const cacheFileName =
`${Math.round(1000 * fi.shape.weight)}-${Math.round(1000 * fi.shape.width)}-` + `${Math.round(1000 * fi.shape.weight)}-${Math.round(1000 * fi.shape.width)}-` +
`${Math.round(3600 * fi.shape.slopeAngle)}-${fi.shape.slope}`; `${Math.round(3600 * fi.shape.slopeAngle)}`;
const cachePath = `${SHARED_CACHE}/${cacheFileName}.mpz`; const cachePath = `${SHARED_CACHE}/${cacheFileName}.mpz`;
const cacheDiffPath = `${charMapPath.dir}/${fn}.cache.mpz`; const cacheDiffPath = `${charMapPath.dir}/${fn}.cache.mpz`;