diff options
author | Mark Otto <markdotto@gmail.com> | 2020-06-23 09:00:57 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2020-06-23 09:07:17 +0300 |
commit | af833c08582bf20c3b2a2622e9bcf2e085bc705b (patch) | |
tree | 3d175bc4995ad46bf2c45aa7798a1ac47a5b85d4 /build | |
parent | 67702cce1aff5fd5156c99b970e75f9c4e9f4ad7 (diff) |
Update script to account for upcoming font-family generation
Diffstat (limited to 'build')
-rw-r--r-- | build/build-svgs.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/build-svgs.js b/build/build-svgs.js index f9a00e52c..60ffa62b1 100644 --- a/build/build-svgs.js +++ b/build/build-svgs.js @@ -57,6 +57,17 @@ const processFile = (file, config) => new Promise((resolve, reject) => { $(svg).attr('width', `${svgWidth}em`) $(svg).attr('height', `${svgHeight}em`) + // Todo: Pass argument to script to flip between ems and pixels. + // Until then, leaving code hereāfont-family generation requires + // use of pixels. + + // const svgWidth = dimensions[2] + // const svgHeight = dimensions[3] + + // $(svg).attr('width', `${svgWidth}`) + // $(svg).attr('height', `${svgHeight}`) + + $(svg).attr('class', `bi bi-${path.basename(file, '.svg')}`) fs.writeFile(file, $(svg), 'utf8') |