More cleanup and optimization
This commit is contained in:
parent
437442a12e
commit
47ee4b42f6
3 changed files with 62 additions and 45 deletions
|
@ -20,15 +20,13 @@ export async function buildFont(argv, para) {
|
|||
// Build OTL
|
||||
const otl = buildOtl(para, gs.glyphStore);
|
||||
|
||||
// Regulate
|
||||
// Regulate (like geometry conversion)
|
||||
const excludeChars = new Set();
|
||||
if (para.excludedCharRanges) {
|
||||
for (const [start, end] of para.excludedCharRanges) {
|
||||
for (let p = start; p <= end; p++) excludeChars.add(p);
|
||||
}
|
||||
}
|
||||
|
||||
// Finalize (like geometry conversion)
|
||||
const cache = await Caching.load(argv.iCache, argv.menu.version, argv.cacheFreshAgeKey);
|
||||
const finalGs = finalizeFont(cache, para, gs.glyphStore, excludeChars, otl);
|
||||
if (cache.isUpdated()) await Caching.save(argv.oCache, argv.menu.version, cache, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue