Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2020-06-23 09:00:57 +0300
committerMark Otto <otto@github.com>2020-06-23 09:07:17 +0300
commitaf833c08582bf20c3b2a2622e9bcf2e085bc705b (patch)
tree3d175bc4995ad46bf2c45aa7798a1ac47a5b85d4 /build
parent67702cce1aff5fd5156c99b970e75f9c4e9f4ad7 (diff)
Update script to account for upcoming font-family generation
Diffstat (limited to 'build')
-rw-r--r--build/build-svgs.js11
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')