diff --git a/output/DIMSymbols.woff2 b/output/DIMSymbols.woff2 index 8765e846..a0d216f6 100644 Binary files a/output/DIMSymbols.woff2 and b/output/DIMSymbols.woff2 differ diff --git a/src/generate-custom-glyph-enums.ts b/src/generate-custom-glyph-enums.ts index 160ede91..c52b0848 100644 --- a/src/generate-custom-glyph-enums.ts +++ b/src/generate-custom-glyph-enums.ts @@ -9,7 +9,12 @@ import fse from 'fs-extra'; const { writeFileSync, unlinkSync } = fse; const acc: Record = {}; -const TAG = "CUSTOM-GLYPHS" +const TAG = 'CUSTOM-GLYPHS'; +const options = { + ts: 0, + description: 'generated by d2ai for Destiny Item Manager', + url: 'http://www.destinyitemmanager.com', +}; webfont({ files: './DIM-custom-font/SVGs/', @@ -23,14 +28,14 @@ webfont({ }) .then((result) => { const woffFile = './DIM-custom-font/DIM-Symbols.woff'; - const woff2File = './output/DIMSymbols.woff2' + const woff2File = './output/DIMSymbols.woff2'; // loadSync requires .otf or .woff filetype for enumeration - const ttf = Buffer.from(svg2ttf(String(result.svg!), { ts: 0 }).buffer); + const ttf = Buffer.from(svg2ttf(String(result.svg!), options).buffer); writeFileSync(woffFile, ttf2woff(ttf)); - infoLog(TAG, `TEMP: ${woffFile} saved.`) + infoLog(TAG, `TEMP: ${woffFile} saved.`); // Generate font format to be used by DIM writeFileSync(woff2File, ttf2woff2(ttf)); - infoLog(TAG, `${woff2File} saved.`) + infoLog(TAG, `${woff2File} saved.`); const font = loadSync(woffFile); @@ -51,7 +56,7 @@ webfont({ writeFile('./data/dim-custom-symbols.ts', outputEnum); // no need to keep this temp file unlinkSync(woffFile); - infoLog(TAG, `TEMP: ${woffFile} removed.`) + infoLog(TAG, `TEMP: ${woffFile} removed.`); }) .catch((error) => { throw error;