From d1c4a6f2cbdfcad21608d3ec5dc4cdaac2165e2d Mon Sep 17 00:00:00 2001 From: Lars van Vianen Date: Fri, 5 Jan 2024 16:31:25 +0100 Subject: [PATCH] WIP --- bin/js/index.js | 47 ++++++++++++-- bin/js/index.js.map | 2 +- bin/ts/index.ts | 98 ++++++++++++++++++++++++++--- dist/css/icon.gl.css | 25 ++++++++ dist/css/icon.gl.min.css | 2 +- dist/font/icon.gl.css | 35 ----------- dist/font/icon.gl.eot | Bin 8192 -> 8192 bytes dist/font/icon.gl.html | 105 -------------------------------- dist/font/icon.gl.json | 7 --- dist/font/icon.gl.sass | 39 ------------ dist/font/icon.gl.scss | 45 -------------- dist/font/icon.gl.svg | 4 +- dist/font/icon.gl.ts | 29 --------- dist/font/icon.gl.ttf | Bin 2616 -> 2580 bytes dist/font/icon.gl.woff | Bin 1616 -> 1612 bytes dist/font/icon.gl.woff2 | Bin 1332 -> 1264 bytes dist/scss/font/_font_face.scss | 69 +++++++++++++++++++++ dist/scss/font/_font_map.scss | 26 ++++++++ dist/scss/font/_font_var.scss | 24 ++++++++ dist/scss/font/font.scss | 22 +++++++ dist/scss/index.scss | 1 + src/font/icon.gl.eot | Bin 0 -> 8192 bytes src/font/icon.gl.svg | 27 ++++++++ src/font/icon.gl.ttf | Bin 0 -> 2580 bytes src/font/icon.gl.woff | Bin 0 -> 1612 bytes src/font/icon.gl.woff2 | Bin 0 -> 1264 bytes src/hbs/_font_face.scss.hbs | 81 ++++++++++++++++++++++++ src/hbs/_font_map.scss.hbs | 24 ++++++++ src/hbs/_font_var.scss.hbs | 24 ++++++++ src/hbs/icon.gl.scss copy 2.hbs | 37 +++++++++++ src/hbs/icon.gl.scss.hbs | 43 ++++--------- src/scss/font/_font_face.scss | 69 +++++++++++++++++++++ src/scss/font/_font_map.scss | 26 ++++++++ src/scss/font/_font_var.scss | 24 ++++++++ src/scss/font/font.scss | 22 +++++++ src/scss/index.scss | 1 + 36 files changed, 651 insertions(+), 307 deletions(-) delete mode 100644 dist/font/icon.gl.css delete mode 100644 dist/font/icon.gl.html delete mode 100644 dist/font/icon.gl.json delete mode 100644 dist/font/icon.gl.sass delete mode 100644 dist/font/icon.gl.scss delete mode 100644 dist/font/icon.gl.ts create mode 100644 dist/scss/font/_font_face.scss create mode 100644 dist/scss/font/_font_map.scss create mode 100644 dist/scss/font/_font_var.scss create mode 100644 dist/scss/font/font.scss create mode 100644 src/font/icon.gl.eot create mode 100644 src/font/icon.gl.svg create mode 100644 src/font/icon.gl.ttf create mode 100644 src/font/icon.gl.woff create mode 100644 src/font/icon.gl.woff2 create mode 100644 src/hbs/_font_face.scss.hbs create mode 100644 src/hbs/_font_map.scss.hbs create mode 100644 src/hbs/_font_var.scss.hbs create mode 100644 src/hbs/icon.gl.scss copy 2.hbs create mode 100644 src/scss/font/_font_face.scss create mode 100644 src/scss/font/_font_map.scss create mode 100644 src/scss/font/_font_var.scss create mode 100644 src/scss/font/font.scss diff --git a/bin/js/index.js b/bin/js/index.js index b8cf924d..91e60982 100644 --- a/bin/js/index.js +++ b/bin/js/index.js @@ -64,10 +64,49 @@ function main() { } ; } - yield directoryCreator.createDirectories(CONFIG.path.dist, ['font']); - const fontGenerator = new FontGenerator(); console.log('Starting font generation...'); - yield fontGenerator.generateFonts(CONFIG.path.font_input, CONFIG.path.font_output); + yield directoryCreator.createDirectories(CONFIG.path.dist, ['font']); + const fontGenerator = new FontGenerator({ + name: 'icon', + prefix: 'icon', + fontsUrl: './fonts', + selector: '.i', + fontTypes: [], + assetTypes: [], + }); + const font_custom_config = { + templates: { + css: path.join(CONFIG.path.src, 'hbs', 'icon.gl.css.hbs'), + scss: path.join(CONFIG.path.src, 'hbs', 'icon.gl.scss.hbs'), + }, + }; + yield fontGenerator.generateFonts(CONFIG.path.font_input, CONFIG.path.font_output, { + fontTypes: [ + "ttf", "woff", "woff2", "eot", "svg", + ], + pathOptions: { + ttf: path.join(CONFIG.path.src, 'font', 'icon.gl.ttf'), + woff: path.join(CONFIG.path.src, 'font', 'icon.gl.woff'), + woff2: path.join(CONFIG.path.src, 'font', 'icon.gl.woff2'), + eot: path.join(CONFIG.path.src, 'font', 'icon.gl.eot'), + svg: path.join(CONFIG.path.src, 'font', 'icon.gl.svg'), + }, + }); + yield fontGenerator.generateFonts(CONFIG.path.font_input, CONFIG.path.font_output, { + assetTypes: ["scss",], + pathOptions: { scss: path.join(CONFIG.path.src, 'scss', 'font', '_font_face.scss'), }, + templates: { scss: path.join(CONFIG.path.src, 'hbs', '_font_face.scss.hbs'), }, + }); + yield fontGenerator.generateFonts(CONFIG.path.font_input, CONFIG.path.font_output, { + assetTypes: ["scss",], + pathOptions: { scss: path.join(CONFIG.path.src, 'scss', 'font', '_font_map.scss'), }, + templates: { scss: path.join(CONFIG.path.src, 'hbs', '_font_map.scss.hbs'), }, + }); + yield fontGenerator.generateFonts(CONFIG.path.font_input, CONFIG.path.font_output, { + assetTypes: ["scss",], + pathOptions: { scss: path.join(CONFIG.path.src, 'scss', 'font', '_font_var.scss'), }, + templates: { scss: path.join(CONFIG.path.src, 'hbs', '_font_var.scss.hbs'), }, + }); console.log('Font generation completed.'); const spriteGenerator = new SvgSpriteGenerator(); console.log('Starting SVG Sprite generation...'); @@ -83,8 +122,8 @@ function main() { fileCopier.copyFileToDirectory(path.join('.', 'LICENSE'), CONFIG.path.dist); const directoryCopier = new DirectoryCopier(); yield directoryCopier.recursiveCopy(CONFIG.path.ts_input, CONFIG.path.ts_output); - console.log('Files copied successfully.'); yield directoryCopier.recursiveCopy(CONFIG.path.scss_input, CONFIG.path.scss_output); + yield directoryCopier.recursiveCopy(path.join(CONFIG.path.src, 'font'), path.join(CONFIG.path.dist, 'font')); console.log('Files copied successfully.'); const versionWriter = new VersionWriter(); yield versionWriter.writeVersionToFile('VERSION', packageConfig.version); diff --git a/bin/js/index.js.map b/bin/js/index.js.map index 52db38a5..2db36ab0 100644 --- a/bin/js/index.js.map +++ b/bin/js/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","source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E,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;iBAC7D,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAG1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;QAC/C,CAAC;IAEL,CAAC;CAAA;AAQD,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/bin/ts/index.ts b/bin/ts/index.ts index 73e41ad1..443018f9 100644 --- a/bin/ts/index.ts +++ b/bin/ts/index.ts @@ -135,14 +135,8 @@ async function main() { const directoryCreator = new DirectoryCreator(); await directoryCreator.createDirectories(CONFIG.path.dist, ['svg']); - - // const svgPackager = new SvgPackager() const svgPackager = new SvgPackager( - path.join(CONFIG.path.root, 'bin/ts/config/svgo.config.js'), - - // "./script/ts/config/svgo.config.js" - // path.join(CONFIG.path.scss_input, 'index.scss'), ); try { await svgPackager.processSvgFiles( @@ -185,13 +179,96 @@ async function main() { // Font // -------------------------------------------------------------------- - await directoryCreator.createDirectories(CONFIG.path.dist, ['font']); - const fontGenerator = new FontGenerator(); console.log('Starting font generation...'); + await directoryCreator.createDirectories(CONFIG.path.dist, ['font']); + const fontGenerator = new FontGenerator( + { + name: 'icon', + prefix: 'icon', + fontsUrl: './fonts', + // fontHeight: number; + // descent: number; + // normalize: boolean; + // round: number; + selector: '.i', + // tag: string; + + fontTypes: [ + // FontAssetType.TTF, // TTF = "ttf" + // FontAssetType.WOFF, // WOFF = "woff" + // FontAssetType.WOFF2, // WOFF2 = "woff2" + // FontAssetType.EOT, // EOT = "eot" + // FontAssetType.SVG, // SVG = "svg" + ], + assetTypes: [ + // OtherAssetType.CSS, // CSS = "css", + // OtherAssetType.SCSS, // SCSS = "scss", + // OtherAssetType.SASS, // SASS = "sass", + // OtherAssetType.HTML, // HTML = "html", + // OtherAssetType.JSON, // JSON = "json", + // OtherAssetType.TS, // TS = "ts" + ], + } + + ); + const font_custom_config = { + templates: { + css: path.join(CONFIG.path.src, 'hbs', 'icon.gl.css.hbs'), + scss: path.join(CONFIG.path.src, 'hbs', 'icon.gl.scss.hbs'), + }, + + } + + + // Fonts + await fontGenerator.generateFonts( + CONFIG.path.font_input, + CONFIG.path.font_output, + { + fontTypes: [ + "ttf", "woff", "woff2", "eot", "svg", + ], + pathOptions: { + ttf: path.join(CONFIG.path.src, 'font', 'icon.gl.ttf'), + woff: path.join(CONFIG.path.src, 'font', 'icon.gl.woff'), + woff2: path.join(CONFIG.path.src, 'font', 'icon.gl.woff2'), + eot: path.join(CONFIG.path.src, 'font', 'icon.gl.eot'), + svg: path.join(CONFIG.path.src, 'font', 'icon.gl.svg'), + }, + } + ); + + // SCSS Fontface + await fontGenerator.generateFonts( + CONFIG.path.font_input, + CONFIG.path.font_output, + { + assetTypes: [ "scss", ], + pathOptions: { scss: path.join(CONFIG.path.src, 'scss', 'font', '_font_face.scss'), }, + templates: { scss: path.join(CONFIG.path.src, 'hbs', '_font_face.scss.hbs'), }, + } + ); + // SCSS Fontmap + await fontGenerator.generateFonts( + CONFIG.path.font_input, + CONFIG.path.font_output, + { + assetTypes: [ "scss", ], + pathOptions: { scss: path.join(CONFIG.path.src, 'scss', 'font', '_font_map.scss'), }, + templates: { scss: path.join(CONFIG.path.src, 'hbs', '_font_map.scss.hbs'), }, + } + ); + // SCSS Variables await fontGenerator.generateFonts( CONFIG.path.font_input, CONFIG.path.font_output, + { + assetTypes: [ "scss", ], + pathOptions: { scss: path.join(CONFIG.path.src, 'scss', 'font', '_font_var.scss'), }, + templates: { scss: path.join(CONFIG.path.src, 'hbs', '_font_var.scss.hbs'), }, + } ); + console.log('Font generation completed.'); @@ -254,11 +331,14 @@ async function main() { CONFIG.path.ts_input, CONFIG.path.ts_output, ); - console.log('Files copied successfully.'); await directoryCopier.recursiveCopy( CONFIG.path.scss_input, CONFIG.path.scss_output, ); + await directoryCopier.recursiveCopy( + path.join(CONFIG.path.src, 'font'), + path.join(CONFIG.path.dist, 'font'), + ); console.log('Files copied successfully.'); diff --git a/dist/css/icon.gl.css b/dist/css/icon.gl.css index 817d6307..b562f8a8 100644 --- a/dist/css/icon.gl.css +++ b/dist/css/icon.gl.css @@ -16,6 +16,31 @@ TABLE OF CONTENTS 2. 3. */ +@font-face { + font-display: swap; + font-family: "icon"; + src: url("./fonts/icon.woff2?24e3eb84d0bcaf83d77f904c78ac1f47") format("woff2") "woff2", url("./fonts/icon.woff?24e3eb84d0bcaf83d77f904c78ac1f47") format("woff") "woff", url("./fonts/icon.ttf?24e3eb84d0bcaf83d77f904c78ac1f47") format("ttf") "truetype"; +} +.icon_pie_01::before { + content: "\f101"; +} + +.icon_pie_02::before { + content: "\f102"; +} + +.icon_pie_03::before { + content: "\f103"; +} + +.icon_star::before { + content: "\f104"; +} + +.icon_swirl::before { + content: "\f105"; +} + .igl_1x { font-size: 1em; } diff --git a/dist/css/icon.gl.min.css b/dist/css/icon.gl.min.css index 1f83198c..9c39a6ef 100644 --- a/dist/css/icon.gl.min.css +++ b/dist/css/icon.gl.min.css @@ -1,2 +1,2 @@ -.igl_1x{font-size:1em}.igl_2x{font-size:2em}.igl_3x{font-size:3em}.igl_4x{font-size:4em}.igl_5x{font-size:5em}.igl_6x{font-size:6em}.igl_7x{font-size:7em}.igl_8x{font-size:8em}.igl_9x{font-size:9em}.igl_10x{font-size:10em}.igl_icon-interactive:hover{box-shadow:0 2px 4px rgba(0,0,0,.2);color:#00c;transform:scale(1.1);transition:all .3s ease-in-out}.igl_icon-interactive:focus{outline:2px solid #66f}.igl_icon-interactive:active{color:#0000e6}.igl_icon-interactive:disabled{color:gray;cursor:not-allowed}.igl_rotate_90{transform:rotate(90deg)}.igl_rotate_180{transform:rotate(180deg)}.igl_rotate_270{transform:rotate(270deg)}.igl_flip-horizontal{transform:scaleX(-1)}.igl_flip-both,.igl_flip-horizontal.igl_flip-vertical,.igl_flip-vertical{transform:scaleY(-1)} +@font-face{font-display:swap;font-family:icon;src:url(fonts/icon.woff2?24e3eb84d0bcaf83d77f904c78ac1f47) format("woff2") "woff2",url(fonts/icon.woff?24e3eb84d0bcaf83d77f904c78ac1f47) format("woff") "woff",url(fonts/icon.ttf?24e3eb84d0bcaf83d77f904c78ac1f47) format("ttf") "truetype"}.icon_pie_01:before{content:""}.icon_pie_02:before{content:""}.icon_pie_03:before{content:""}.icon_star:before{content:""}.icon_swirl:before{content:""}.igl_1x{font-size:1em}.igl_2x{font-size:2em}.igl_3x{font-size:3em}.igl_4x{font-size:4em}.igl_5x{font-size:5em}.igl_6x{font-size:6em}.igl_7x{font-size:7em}.igl_8x{font-size:8em}.igl_9x{font-size:9em}.igl_10x{font-size:10em}.igl_icon-interactive:hover{box-shadow:0 2px 4px rgba(0,0,0,.2);color:#00c;transform:scale(1.1);transition:all .3s ease-in-out}.igl_icon-interactive:focus{outline:2px solid #66f}.igl_icon-interactive:active{color:#0000e6}.igl_icon-interactive:disabled{color:gray;cursor:not-allowed}.igl_rotate_90{transform:rotate(90deg)}.igl_rotate_180{transform:rotate(180deg)}.igl_rotate_270{transform:rotate(270deg)}.igl_flip-horizontal{transform:scaleX(-1)}.igl_flip-both,.igl_flip-horizontal.igl_flip-vertical,.igl_flip-vertical{transform:scaleY(-1)} /*# sourceMappingURL=to.css.map */ \ No newline at end of file diff --git a/dist/font/icon.gl.css b/dist/font/icon.gl.css deleted file mode 100644 index 133f8da7..00000000 --- a/dist/font/icon.gl.css +++ /dev/null @@ -1,35 +0,0 @@ -@font-face { - font-family: "icon.gl"; - src: url("./fonts/icon.gl.ttf?a0262c240629c652a75b9b823990c7e5") format("truetype"), -url("./fonts/icon.gl.woff?a0262c240629c652a75b9b823990c7e5") format("woff"), -url("./fonts/icon.gl.woff2?a0262c240629c652a75b9b823990c7e5") format("woff2"), -url("./fonts/icon.gl.eot?a0262c240629c652a75b9b823990c7e5#iefix") format("embedded-opentype"), -url("./fonts/icon.gl.svg?a0262c240629c652a75b9b823990c7e5#icon.gl") format("svg"); -} - -.igl:before { - font-family: icon.gl !important; - font-style: normal; - font-weight: normal !important; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.igl.icon-pie_01:before { - content: "\f101"; -} -.igl.icon-pie_02:before { - content: "\f102"; -} -.igl.icon-pie_03:before { - content: "\f103"; -} -.igl.icon-star:before { - content: "\f104"; -} -.igl.icon-swirl:before { - content: "\f105"; -} diff --git a/dist/font/icon.gl.eot b/dist/font/icon.gl.eot index 2b0905af257308ad44b4d1a178bfafb8da682b14..52a66e6f5b8cc163be5af6137bd9c0e3b961f8cd 100644 GIT binary patch literal 8192 zcmeHM3v`sl6~43C-DH!noA(9?*&jl(0YVb;S}+g@Wb=@a&^!cRO_pTy&?Fl-%S+oP zXhkX(uvXNgR(gD4Sn4pr_XiUuf*ax3Z^=PGN{F9&lv zxDB=SIeD`_o6n%@@Mv!7_VgZ}(NqZQjo@u=?^@aRC*{5*qOiw_j42&nPwV21n;L;V zfLzo8hT#H{hce_ev7ISlQc>+B& zhA=b3@{wiH)!FWWeoeCgj->(|fqpcuk-ice$b{OH^ctR%CEb7pUNF*UAUiEBY;(8L zu0b(qQb#vdROsU#0aHiD@>3aerp}+*C;KDUcx^9I+Y_89Of6-BviDvD>0}jSWd5Lu zS94JC6LoDw24Ib>QSi8a=qXyAfND7nn3X}EH})Q;SQF0dUxS!`&X_$K#7uJL86D&{ z>=T@c=F$Ki7BvPd%8Vc}6>Atni8PiniPB3%VL`T-U=<0eB0sOl<;=H=a93Jks=-uH zB3y}ft4N!WErdw0XS(a$nVIfMsjh@YOAWEM3H{?|q@Da?LUEcWE@yOl$;7D%uGC2k z0nVP#nmjpnNxva&#-y}a>4r5ev2hbibQ`i@gB9LCfo;f#e)Lr=67v%itiowEz?M98 zo(4Pe^HN2kGe6tlyaqi?EJ=^(pIDORC`eVN&nZ$2{aeFh<99HYrP{Sp| z@ag0voXY7=S5bydI5Q^j!;Ep66ZnxdTiBEG_)(N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b$6iJJ zc6?}lGP_aIum8Bjv)hy&-z#x^$)cbC0BZH|)8jYg<9Xu?<>O1)_46U7%^yWs^!c?9 zwfg?`cs4%ME9_O&jON=9kpx<>f~rgBw=G4`*<#7rlSFZ?Ydm z2DjBo^F06agx`B*JSF{W*7^CXoi7=@R6Ae9_jjwb->D_|;%%zn3cOF^LPxcJ{0Akz z+V`g-rtNPi%A&Ww4Ygu@wEI=|`=IZaf1eNJ%s=P*AY99@%=epz&yfEIuWT>#>x%n} zT>n*Z6@5>Te|)kfJANN3SDueOs^Hf0^HDqB(rJ>Y_*DJ^SRx^akBE=Nm*z-~MXb*x zN&?r;m+bjK{SQhUU!tg!st~Gp|10)?xK-j}d@J^67?Ah|KE5e*Ci<7>SMza+i}8&} zoH)EB5~>iy{t>{2u*d(6NJWjP{0;Toe;6A&JTpGwUt9llTHC*}`Q<~~73b5U7GL2% zyZVikG~eb4BoJq!AY3KN6cT_ zKePS`Ka{~K5?B`dRQ{Ix^UCpM$4~Ri`Zo)+y!_Ml-z)8Z^lPAQev31za3t23@2@+4 zW?_qSbQEII;tzcO+5MGPnu>mW+5NRyzOqZn@$%=ioSoozj9ogzrO#K R`>P&bKwGgs2I)VG{|B)1 - - - - icon.gl - - - - - - - -

icon.gl

- - -
- - - -
- pie_01 -
- - -
- - - -
- pie_02 -
- - -
- - - -
- pie_03 -
- - -
- - - -
- star -
- - -
- - - -
- swirl -
- - - - diff --git a/dist/font/icon.gl.json b/dist/font/icon.gl.json deleted file mode 100644 index d45a525a..00000000 --- a/dist/font/icon.gl.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "pie_01": 61697, - "pie_02": 61698, - "pie_03": 61699, - "star": 61700, - "swirl": 61701 -} \ No newline at end of file diff --git a/dist/font/icon.gl.sass b/dist/font/icon.gl.sass deleted file mode 100644 index 67ece164..00000000 --- a/dist/font/icon.gl.sass +++ /dev/null @@ -1,39 +0,0 @@ -$icon.gl-font: "icon.gl" - -@font-face - font-family: $icon.gl-font - src: url("./fonts/icon.gl.ttf?a0262c240629c652a75b9b823990c7e5") format("truetype"), -url("./fonts/icon.gl.woff?a0262c240629c652a75b9b823990c7e5") format("woff"), -url("./fonts/icon.gl.woff2?a0262c240629c652a75b9b823990c7e5") format("woff2"), -url("./fonts/icon.gl.eot?a0262c240629c652a75b9b823990c7e5#iefix") format("embedded-opentype"), -url("./fonts/icon.gl.svg?a0262c240629c652a75b9b823990c7e5#icon.gl") format("svg") - -.igl:before - font-family: icon.gl !important - font-style: normal - font-weight: normal !important - font-variant: normal - text-transform: none - line-height: 1 - -webkit-font-smoothing: antialiased - -moz-osx-font-smoothing: grayscale - - -$icon.gl-map: ( - "pie_01": "\f101", - "pie_02": "\f102", - "pie_03": "\f103", - "star": "\f104", - "swirl": "\f105", -) - -.igl.icon-pie_01:before - content: map-get($icon.gl-map, "pie_01") -.igl.icon-pie_02:before - content: map-get($icon.gl-map, "pie_02") -.igl.icon-pie_03:before - content: map-get($icon.gl-map, "pie_03") -.igl.icon-star:before - content: map-get($icon.gl-map, "star") -.igl.icon-swirl:before - content: map-get($icon.gl-map, "swirl") diff --git a/dist/font/icon.gl.scss b/dist/font/icon.gl.scss deleted file mode 100644 index e2c01730..00000000 --- a/dist/font/icon.gl.scss +++ /dev/null @@ -1,45 +0,0 @@ -$icon.gl-font: "icon.gl"; - -@font-face { - font-family: $icon.gl-font; - src: url("./fonts/icon.gl.ttf?a0262c240629c652a75b9b823990c7e5") format("truetype"), -url("./fonts/icon.gl.woff?a0262c240629c652a75b9b823990c7e5") format("woff"), -url("./fonts/icon.gl.woff2?a0262c240629c652a75b9b823990c7e5") format("woff2"), -url("./fonts/icon.gl.eot?a0262c240629c652a75b9b823990c7e5#iefix") format("embedded-opentype"), -url("./fonts/icon.gl.svg?a0262c240629c652a75b9b823990c7e5#icon.gl") format("svg"); -} - -.igl:before { - font-family: icon.gl !important; - font-style: normal; - font-weight: normal !important; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -$icon.gl-map: ( - "pie_01": "\f101", - "pie_02": "\f102", - "pie_03": "\f103", - "star": "\f104", - "swirl": "\f105", -); - -.igl.icon-pie_01:before { - content: map-get($icon.gl-map, "pie_01"); -} -.igl.icon-pie_02:before { - content: map-get($icon.gl-map, "pie_02"); -} -.igl.icon-pie_03:before { - content: map-get($icon.gl-map, "pie_03"); -} -.igl.icon-star:before { - content: map-get($icon.gl-map, "star"); -} -.igl.icon-swirl:before { - content: map-get($icon.gl-map, "swirl"); -} diff --git a/dist/font/icon.gl.svg b/dist/font/icon.gl.svg index 47fd0e3c..e0fdd263 100644 --- a/dist/font/icon.gl.svg +++ b/dist/font/icon.gl.svg @@ -2,8 +2,8 @@ - - + diff --git a/dist/font/icon.gl.ts b/dist/font/icon.gl.ts deleted file mode 100644 index 4a2ca86c..00000000 --- a/dist/font/icon.gl.ts +++ /dev/null @@ -1,29 +0,0 @@ -export type IconGlId = - | "pie_01" - | "pie_02" - | "pie_03" - | "star" - | "swirl"; - -export type IconGlKey = - | "Pie_01" - | "Pie_02" - | "Pie_03" - | "Star" - | "Swirl"; - -export enum icon_gl { - Pie_01 = "pie_01", - Pie_02 = "pie_02", - Pie_03 = "pie_03", - Star = "star", - Swirl = "swirl", -} - -export const MY_CODEPOINTS: { [key in icon_gl]: string } = { - [icon_gl.Pie_01]: "61697", - [icon_gl.Pie_02]: "61698", - [icon_gl.Pie_03]: "61699", - [icon_gl.Star]: "61700", - [icon_gl.Swirl]: "61701", -}; diff --git a/dist/font/icon.gl.ttf b/dist/font/icon.gl.ttf index 585bb86995af490beb9585ae0a83ebd81e1f3cc9..be4fa86afe1fb86bc9fe61c1c54bf97adc3940b7 100644 GIT binary patch delta 330 zcmX}ip-%#F7{>80+>e8U4TFrC92zWa?AUB}O%%cf5{#XAj@_|4F-lRh4x@oUbVrR4GK0)yVa-WkVySP4oy8-X@e&w6z!~XHh z*N;0hNG$_-iWs#cs;G^4OI?t3TkT4|t1i=IUu{1+IOL2cNr}EXPn9#ZBl)FuPo9h% zS6URPbE|eGe^i$VSgI==@Er}4xEqe9<3Va^CkWFlO5#Sl<=b=qUOGAI5;9`Sm;osf ZLlWZu9Y~v!$!*gHZCdz$?fleR{{n(^G}izC delta 366 zcmY+;KWoBJ6b0}T6O$$Z7yrG*+;-Q00nE3WYgF2_ZwiIK6b7)f9kJ3 z&wu)h0YKqp2?o!_Dpe9|bX8o0jXSZHLCodzzw60kGeyQUZ#2+m%f0R_AI#r>*yB9J diff --git a/dist/font/icon.gl.woff b/dist/font/icon.gl.woff index b4fa40af4348d9dcefa4029f08711bb974dbb13e..aceb6bce5a685b6e90c5b57827881719a7f61b7c 100644 GIT binary patch delta 384 zcmV-`0e}9`49pA^cTYw}00961000I|01E&B000UUkrdYv9smFV=Gh?zt#EI1bN~Pb z6tVnq11I$+u14|vHeVUI8Fhdn3^l478esH)AYjyG)CF=m7??n!03@ypIFpnFV}Fpn zPQx%1g-_bFKq~r31EN zfA_n`juHU3_(A|b0)*Y_M-LaQez{K?3x}LH!UNhn;UWEl@CeU%6!wW1-VlUWG?#c4 z?%^6c;XeIQI3&Lb4{(on;UWEp@P7y~K8444!grCHdad(AnOKkhiM4GDQ>$4t_2o*} z+9pnK)#jwyV?K8-Q<*iDTAJGFvNWo(X0KBh?VM{ClSw8%N==0VDGX|?p^@W&5((_t z{_Qcl7ADh1}Cm9zdpyD)*)k^F=J4XmfcC8E*&`yP1E)E eG%0<=f9Ov&SYX1L{mVz)yQ?4M5m0B776v+AG^R`d delta 388 zcmV-~0ek+;4A2Y|cTYw}00961000J101E&B000U&krdYvA^-pa3hW9C;&5+sbN~Pb z7_t0u11HWTtA==fo39Mqj5H@hO3``(V05K*DgOij5V}FlJ zYQr!TMXwVlp)rI)X-B1K)D8;DXP5;f^9&3fI*#ll*p`u%K)QmipeyJqx`5JU_1e5i zBZ1y|M^{1uaEl)VXh(oix3;549trnJ6XB42FFZhmN8us;i|`n)(83Y!@Wva0@P=lB zLbykM7w(fkghTSD@Bk0^5+2fj3xAIh<5xJsbMSOXZKd;KWAamxIO(Ls#x)09skxqs zS)0nZ#G9SkUQ~0=7v5(obGB3~TX|CyR@KfPP3raD`+7N@X5w{fOB|5GqT&y8{$>Ni zdLkuoS9|}vm`R6*wsi_~`q@=x%}mwh5_r}fb6Z@vHaIh}p!LYuXUtfXq#;#zzD*aL imZt9Zjx;H~#=bjMV~Htec9qxN3(7w=(pZ+05(YY2=c=Rt diff --git a/dist/font/icon.gl.woff2 b/dist/font/icon.gl.woff2 index 97df096bd58244dee51f754334f23e5a32c6ba79..de3a6a04c9687d03d9bf06a9f3f95dfd095e09bc 100644 GIT binary patch delta 1234 zcmV;@1TFit3h)UScTYw#00961000E=01E&B000UU000D}kr*(4gJuU&8;S@c5q5Jh zYA5@P1H0kdnY##^Md)tYz^uY>>>UsRXXVvM)2j*gb3XK)`DT^POnQ4Z3L$Bo6aYVs z03iPHc5mB$93+@nf&mU93Mjy?w)I;2hIHDP&UdZoo&tM_`A;{GOK+g2_@BmO`QDUG zt{?7ayez;-0Q>oW7M+$&0~^>0Mm9!+9_oqMnVM5KkD$m77GHyCw*diA!4h#-W_~%0 zR!je$uqE*336%9@b?MXs`Q#!n5<<2~vU~l?bcleXxCy{F{q^ZEQUGwo4(|-b9W&bF z_($?lB>n*Gk~P5yLLAsF^8o*adC1L&D#7Ol|I|eLLIPiZT3$flcWEZ7& zibj?!MLfBnXuM74wQbr(ba(ISZ{OD5xx);X{3_Y}&DK?v?74EHS$FDM6e`y5r~0cW zS%}t;#26TV?eWW%t1oZY?zm#Ow9Af4Zo>>$PN0%4+!a}l~a~Rcse|PcU)8~a6Y|*Ix-iiLHORpW& zoYJjAy-U}UibWa)2;)FX$uW>2KepIRJKJ>Nyd)OcfgBkm38jTNL=aJ7DX3ge(!EBt z8P2&IE=ZqU=yC~-Ug_yxr2&!{OYCL=<-RxJpOl)p7eqrNrD*+Rt=G=r^9`dMBvPXIZzke^poy70GlN&xcjoRceb*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JO^UXBf8Yw5s5v##?_Ra5WgLKPYP*_d&tr>0!s;clyHe-&)ReOT;n86RUw_2iou*Xo8v= z@DIDuxhgx6nZp1h2fPZvA$ouSu~9{T8eXbImY}L- z1jsg3WVcV1=p9nk+I*cxBOd&NiWIdvc7-dOQRBc*=iQ-UZloZ7`C{iS_EDfgEmTRR zPnw-otHoN9T0?S@EQN)PNz!1*Eh<*6-mdhYf`!)bwMnpcNZ+Lm9&z z8r64@!L;d`i4yfIP6PI(f`yr~Aho=UkC^6M%`Gz|UhdQT7$km^R*P~NSuiv5DxDY> zZ#UTrOU-~lSTj-x`t`9&YsTgLIph7OyZR@SLL@{(Oo$C}A)Yj~!Ka2_3ijU+AWU1- Mh%~z!g8={l0Gx1Rz5oCK diff --git a/dist/scss/font/_font_face.scss b/dist/scss/font/_font_face.scss new file mode 100644 index 00000000..daea6d0a --- /dev/null +++ b/dist/scss/font/_font_face.scss @@ -0,0 +1,69 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Map +// ============================================================================ + + +// FontFace Variables +// ============================================================================ + +$icon_font: "icon" !default; +$icon_font_dir: "./fonts" !default; +$icon_font_hash: "24e3eb84d0bcaf83d77f904c78ac1f47" !default; + + +// Generating font-face URLs with hash +// ============================================================================ + +@function icon_font-url($format) { + @return url("#{$icon_font_dir}/#{$icon_font}.#{$format}?#{$icon_font_hash}") format($format); +} + + + +// Defining supported font formats +// ============================================================================ + +$icon_font_formats: ( + "woff2" : "woff2", + "woff" : "woff", + "ttf" : "truetype" // Adding TrueType format for additional compatibility +); + + +// Constructing src value for @font-face +// ============================================================================ + +$icon_font_src: (); +@each $format, $type in $icon_font_formats { + $icon_font_src: append($icon_font_src, icon_font-url($format) $type, comma); + +} + + + + +// FontFace Declaration +// ============================================================================ + +@font-face { + font-display: swap; // Using 'swap' to ensure text remains visible during font loading + font-family: $icon_font; + src: $icon_font_src; +} + + diff --git a/dist/scss/font/_font_map.scss b/dist/scss/font/_font_map.scss new file mode 100644 index 00000000..93b5d473 --- /dev/null +++ b/dist/scss/font/_font_map.scss @@ -0,0 +1,26 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Map +// ============================================================================ + +$icon_map: ( + "pie_01": "\f101", + "pie_02": "\f102", + "pie_03": "\f103", + "star": "\f104", + "swirl": "\f105", +); \ No newline at end of file diff --git a/dist/scss/font/_font_var.scss b/dist/scss/font/_font_var.scss new file mode 100644 index 00000000..a4826c28 --- /dev/null +++ b/dist/scss/font/_font_var.scss @@ -0,0 +1,24 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Variables +// ============================================================================ + +@each $icon, $codepoint in $icon_map { + .icon_#{$icon}::before { content: $codepoint; } +} + + diff --git a/dist/scss/font/font.scss b/dist/scss/font/font.scss new file mode 100644 index 00000000..018c6762 --- /dev/null +++ b/dist/scss/font/font.scss @@ -0,0 +1,22 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font +// ============================================================================ + +@import "_font_face.scss"; +@import "_font_map.scss"; +@import "_font_var.scss"; diff --git a/dist/scss/index.scss b/dist/scss/index.scss index 3eb8ad1c..d2ff3b9a 100644 --- a/dist/scss/index.scss +++ b/dist/scss/index.scss @@ -41,6 +41,7 @@ TABLE OF CONTENTS $icongl_prefix: "igl_"; +@import "font/font.scss"; @import "_size.scss"; @import "_state.scss"; @import "_transform.scss"; diff --git a/src/font/icon.gl.eot b/src/font/icon.gl.eot new file mode 100644 index 0000000000000000000000000000000000000000..52a66e6f5b8cc163be5af6137bd9c0e3b961f8cd GIT binary patch literal 8192 zcmeHM3v`sl6~43C-DH!noA(9?*&jl(0YVb;S}+g@Wb=@a&^!cRO_pTy&?Fl-%S+oP zXhkX(uvXNgR(gD4Sn4pr_XiUuf*ax3Z^=PGN{F9&lv zxDB=SIeD`_o6n%@@Mv!7_VgZ}(NqZQjo@u=?^@aRC*{5*qOiw_j42&nPwV21n;L;V zfLzo8hT#H{hce_ev7ISlQc>+B& zhA=b3@{wiH)!FWWeoeCgj->(|fqpcuk-ice$b{OH^ctR%CEb7pUNF*UAUiEBY;(8L zu0b(qQb#vdROsU#0aHiD@>3aerp}+*C;KDUcx^9I+Y_89Of6-BviDvD>0}jSWd5Lu zS94JC6LoDw24Ib>QSi8a=qXyAfND7nn3X}EH})Q;SQF0dUxS!`&X_$K#7uJL86D&{ z>=T@c=F$Ki7BvPd%8Vc}6>Atni8PiniPB3%VL`T-U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7qwI?_Rt=IFkEb>?ZOwdzCQ6eeJ&j25O>fWqKTTsd-R@|O|!*Q^pxnQ zelbKt>|*~D)8dTxS-k5&AZ+usp{awQUBAJ~Qk&Bk&9i{erw<;R9ssXo3q#AvkQqOTns5Ao~ z6hb8*Zs{hPP5s{zns7TL;zk&STOb0bb`owS{wNd+kDdjeHsY2^gJ*8-*x@H;rrHmCVj>bf{YNnB*Z;d#5$>nZv$J=}w=pv?bFMNy5TL5Abjea2Pld%`=C9*|UzOZECe$=9haZ%)5bZQmhj zucZ7w!+mPj3=Og0ur2(tO2Of;dobI~Gpy_DFlqL5N!lx^F4yY;$zKs9hpLc?Z_a#V z-JU5Zvn`w19+dIVX?1>>57w|fC#3#=NJ?hSKHZ*Vvo`(|Nfk+TIaGyAY)=8QZV$g# Pur2qoJ + + + + + + + + + + + + + + diff --git a/src/font/icon.gl.ttf b/src/font/icon.gl.ttf new file mode 100644 index 0000000000000000000000000000000000000000..be4fa86afe1fb86bc9fe61c1c54bf97adc3940b7 GIT binary patch literal 2580 zcmd^A%WoS+82@IyUVCkK*Gc_qYV1w?O48I${Mxi`3`8WUpykmQ2qCquV<)Nn!gfoG z5b1%J1S&n13rI+S1X3&b0}!eZ;>dv$NE|qELP)OQ(gWc)<82zMAh%`JALJfdyps6hD%a%m&=%H2PLeo^#yu(Y9;t%ks0$Afb}t&2 zyJ(imBt5o#>=bE@O20*8gv@Nqchan}u~vcqp=Sm?E@eO%))}HQ-DTIw4(==Z9^Vm3wjTP!^GK`TdTZiTsH*xo^(#vwcC>6P-a_ z@JMGcBYNO6cExpMjt}hoGzW~2;D-@O(3QDI#^d_GH;+ibF)Izo%7EvM=akPl6W)2% z4Um7{kv$q9lf3hc4!8}k3Eqho=_=h}Pf8kSu0iY|&d^JK+E0^2i83qX(`-Uxz6i@@ zi)JdPF^3r|L?nB@%uIh!W3h=eW6T$vTspBdIk_|yF@4Wolt%Q4&GAFAKYyPn#VVtj zeTj1XpwEmkT!2#a{%A$NYQL0UVa>; z6a1DmUM$a#M{-8w8n<~U8%4^*w<+THW9=x#X^PU6rAPVKlE`P|WJZnobA?nk${c<( z=qLmW7=tkkx$WT}cgtp&B-tIZY*#%VO&?KJ{o1BvQ?;m`VI|Ls-+fd)Vz|;u)Nt$4 zja|dJ1!L8#ITXe1Qk{w{v3K1=WL0pQD4}phSFp%X#F~iJaUT49SBjqqtW-4d~O-GPT7QIZ77os+&ExI5p z%v+S@A!JDRp|a*JMWZEep)j0_A3UJEyZwIW4wE8Gd3E#K1$A))6~RkRlmt#6C2@fL zXFlLlpqBFPb$4$d9$Mx`B z7_T0h4&l{(F&|#t8}{PW_l}M2)jgx59;doTMrqibimECC8Okg@%gXX$d9?gntJ&;! z@nwl)H_S!T2+z&Wg+tS`(;;7MGUoG!jj(qtIW`&^-J{AfmQy_{7(hZKl!Ur46fT4_ zXyRh<(zpB+_!VK@%$%0U0d9!%d)jT${6^O;+75KDMJvD~7VV+~_`-*_T;n+ZJIE>! zC!Mos3HQLdMcaU1vS=Cfs}^mi0KH++3h?(W+J*nk#}@6TB;DPpwp%A^YZn`pE+=_E zQ|tCN+AU))JCp`mcmwLdtu0eCSWoEavRv>K&jSBTK zuR`NIUBTEx^lP|}`grQ#>+sU1Ca7iMiEB6Tw1ISl>;jM~wA08Tx9ZSg%HXL#pr01| xZi@5drz-v$L*ju^VG^@3nc11b9HewMYG-HXhEsMp<>X$!(zW+q+UPcf@n1q#M$iBN literal 0 HcmV?d00001 diff --git a/src/font/icon.gl.woff b/src/font/icon.gl.woff new file mode 100644 index 0000000000000000000000000000000000000000..aceb6bce5a685b6e90c5b57827881719a7f61b7c GIT binary patch literal 1612 zcmY+EcT|&C7{>1xAR8$v*+M2nKhP*jjls*GZt z*vdv)sZgX04Tu#hDF}*82O5SV6e*Hk+Wyn`oZq?c^W68IJI;A;s+W@!KmZK92asPK zBP4J=fyIe{-Y2-XF68xq9=yAU>I~ZCSihHX4qiBViP@mW>`tnp?{n>2}@L#m)~yS$vSci}o$m$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(Ww63iT|5K&<%s9aCdy+*Ye&bb>dNS|Hk?&5o#jw^;1 zCyV*(j*dQF>FHjj0g@O?^C$3e>=;(rHo!{#+@%^dii|et&Ai?0SG!DXZZ&>k<8dni z6Qbtagj*i+s8O;am0UZ+*2O;twr=A5-pE#AF(Ya!50`!ln0SXQRtpfi2a_zu`xhdG-^I4!)s z#y@;T@U=H?vfG<$!4>?U#!xx5E&OV>cvFb{@ZPU&uU~KbRai*uH*Xd+VvXXnNsB_y zskrp|min!ii(=2VM{j5LiuJr9!9(U*E9P#Y-l1;hit(}E&cBZtD`pEk7nms;6KfNV ztiG%k!c=}WFG~|O6QwS47=%F?jDc|&4Mwl#(^P4whnFQM@lOr^fkF}h=>2_gj;kyS z&j@W&;=jsFE<4;~yOxIJ(~xoIJa8b7;~Xsc)nfcmh)qW5bwM%@YH$MspeW!!BF4_z z0tZV-nN=>>1-M%aD=7j)QHmHdr9|MUr2M#I?Ait3k)Z}5Ylf0zq_dJI8%PltBb6dc z;|G+EvpP3-f=RW{)IDCaUl8!U3mh!4~Qh=FO^QF<>U@ zA*W%%t|Lej1#A}PmL+AJo4yCIhWd+dXn3PtyJ|W@8u%j&Ght{1$pk}rnFdz7TCiQZ zK4IRh+DR5;Fpo;=A=knr4V`bGyD9Y-0yY$4PNR@A?$0u^CN{05e}{;F@I>!)b#3Vx anW=0lc`SrX=xQ7N=(kkUv)}Hg?s5UA<5?vD literal 0 HcmV?d00001 diff --git a/src/hbs/_font_face.scss.hbs b/src/hbs/_font_face.scss.hbs new file mode 100644 index 00000000..f3b3e92a --- /dev/null +++ b/src/hbs/_font_face.scss.hbs @@ -0,0 +1,81 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Map +// ============================================================================ + + +// FontFace Variables +// ============================================================================ + +${{ name }}_font: "{{ name }}" !default; +${{ name }}_font_dir: "{{ fontsUrl }}" !default; +${{ name }}_font_hash: "24e3eb84d0bcaf83d77f904c78ac1f47" !default; + + +// Generating font-face URLs with hash +// ============================================================================ + +@function {{ name }}_font-url($format) { + @return url("#{${{ name }}_font_dir}/#{${{ name }}_font}.#{$format}?#{${{ name }}_font_hash}") format($format); +} + + + +// Defining supported font formats +// ============================================================================ + +${{ name }}_font_formats: ( + "woff2" : "woff2", + "woff" : "woff", + "ttf" : "truetype" // Adding TrueType format for additional compatibility +); + + +// Constructing src value for @font-face +// ============================================================================ + +${{ name }}_font_src: (); +@each $format, $type in ${{ name }}_font_formats { + ${{ name }}_font_src: append(${{ name }}_font_src, {{ name }}_font-url($format) $type, comma); + +} + + +{{!-- +${{ name }}_font_file: "#{${{ name }}_font_dir}/#{${{ name }}_font}" !default; +${{ name }}_font_src: url("#{${{ name }}_font_file}.woff2?#{${{ name }}_font_hash}") format("woff2"), + url("#{${{ name }}_font_file}.woff?#{${{ name }}_font_hash}") format("woff") !default; --}} + + +// FontFace Declaration +// ============================================================================ + +@font-face { + {{!-- font-display: block; --}} + font-display: swap; // Using 'swap' to ensure text remains visible during font loading + font-family: ${{ name }}_font; + src: ${{ name }}_font_src; +} + + +{{!-- +${{ name }}_font: "{{ name }}"; + +@font-face { + font-family: ${{ name }}_font; + src: {{{ fontSrc }}}; +} --}} diff --git a/src/hbs/_font_map.scss.hbs b/src/hbs/_font_map.scss.hbs new file mode 100644 index 00000000..83ab842c --- /dev/null +++ b/src/hbs/_font_map.scss.hbs @@ -0,0 +1,24 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Map +// ============================================================================ + +${{ name }}_map: ( +{{# each codepoints }} + "{{ @key }}": "\\{{ codepoint this }}", +{{/ each }} +); \ No newline at end of file diff --git a/src/hbs/_font_var.scss.hbs b/src/hbs/_font_var.scss.hbs new file mode 100644 index 00000000..e978461e --- /dev/null +++ b/src/hbs/_font_var.scss.hbs @@ -0,0 +1,24 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Variables +// ============================================================================ + +@each $icon, $codepoint in ${{ name }}_map { + .{{ prefix }}_#{$icon}::before { content: $codepoint; } +} + + diff --git a/src/hbs/icon.gl.scss copy 2.hbs b/src/hbs/icon.gl.scss copy 2.hbs new file mode 100644 index 00000000..ae929463 --- /dev/null +++ b/src/hbs/icon.gl.scss copy 2.hbs @@ -0,0 +1,37 @@ +${{ name }}-font: "{{ name }}"; + +@font-face { + font-family: ${{ name }}-font; + src: {{{ fontSrc }}}; +} + +{{# if selector }} +{{ selector }}:before { +{{ else }} +{{ tag }}[class^="{{prefix}}-"]:before, {{ tag }}[class*=" {{prefix}}-"]:before { +{{/ if }} + font-family: {{ name }} !important; + font-style: normal; + font-weight: normal !important; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +${{ name }}-map: ( +{{# each codepoints }} + "{{ @key }}": "\\{{ codepoint this }}", +{{/ each }} +); + +{{# each codepoints }} +{{# if ../selector }} +{{ ../selector }}.{{ ../prefix }}-{{ @key }}:before { +{{ else }} +{{ tag }}.{{ ../prefix }}-{{ @key }}:before { +{{/ if }} + content: map-get(${{ ../name }}-map, "{{ @key }}"); +} +{{/ each }} \ No newline at end of file diff --git a/src/hbs/icon.gl.scss.hbs b/src/hbs/icon.gl.scss.hbs index ae929463..e3d0fe04 100644 --- a/src/hbs/icon.gl.scss.hbs +++ b/src/hbs/icon.gl.scss.hbs @@ -1,37 +1,20 @@ -${{ name }}-font: "{{ name }}"; +// Copyright 2023 Scape Agency BV -@font-face { - font-family: ${{ name }}-font; - src: {{{ fontSrc }}}; -} +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. -{{# if selector }} -{{ selector }}:before { -{{ else }} -{{ tag }}[class^="{{prefix}}-"]:before, {{ tag }}[class*=" {{prefix}}-"]:before { -{{/ if }} - font-family: {{ name }} !important; - font-style: normal; - font-weight: normal !important; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} ${{ name }}-map: ( {{# each codepoints }} "{{ @key }}": "\\{{ codepoint this }}", {{/ each }} -); - -{{# each codepoints }} -{{# if ../selector }} -{{ ../selector }}.{{ ../prefix }}-{{ @key }}:before { -{{ else }} -{{ tag }}.{{ ../prefix }}-{{ @key }}:before { -{{/ if }} - content: map-get(${{ ../name }}-map, "{{ @key }}"); -} -{{/ each }} \ No newline at end of file +); \ No newline at end of file diff --git a/src/scss/font/_font_face.scss b/src/scss/font/_font_face.scss new file mode 100644 index 00000000..daea6d0a --- /dev/null +++ b/src/scss/font/_font_face.scss @@ -0,0 +1,69 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Map +// ============================================================================ + + +// FontFace Variables +// ============================================================================ + +$icon_font: "icon" !default; +$icon_font_dir: "./fonts" !default; +$icon_font_hash: "24e3eb84d0bcaf83d77f904c78ac1f47" !default; + + +// Generating font-face URLs with hash +// ============================================================================ + +@function icon_font-url($format) { + @return url("#{$icon_font_dir}/#{$icon_font}.#{$format}?#{$icon_font_hash}") format($format); +} + + + +// Defining supported font formats +// ============================================================================ + +$icon_font_formats: ( + "woff2" : "woff2", + "woff" : "woff", + "ttf" : "truetype" // Adding TrueType format for additional compatibility +); + + +// Constructing src value for @font-face +// ============================================================================ + +$icon_font_src: (); +@each $format, $type in $icon_font_formats { + $icon_font_src: append($icon_font_src, icon_font-url($format) $type, comma); + +} + + + + +// FontFace Declaration +// ============================================================================ + +@font-face { + font-display: swap; // Using 'swap' to ensure text remains visible during font loading + font-family: $icon_font; + src: $icon_font_src; +} + + diff --git a/src/scss/font/_font_map.scss b/src/scss/font/_font_map.scss new file mode 100644 index 00000000..93b5d473 --- /dev/null +++ b/src/scss/font/_font_map.scss @@ -0,0 +1,26 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Map +// ============================================================================ + +$icon_map: ( + "pie_01": "\f101", + "pie_02": "\f102", + "pie_03": "\f103", + "star": "\f104", + "swirl": "\f105", +); \ No newline at end of file diff --git a/src/scss/font/_font_var.scss b/src/scss/font/_font_var.scss new file mode 100644 index 00000000..a4826c28 --- /dev/null +++ b/src/scss/font/_font_var.scss @@ -0,0 +1,24 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font Variables +// ============================================================================ + +@each $icon, $codepoint in $icon_map { + .icon_#{$icon}::before { content: $codepoint; } +} + + diff --git a/src/scss/font/font.scss b/src/scss/font/font.scss new file mode 100644 index 00000000..018c6762 --- /dev/null +++ b/src/scss/font/font.scss @@ -0,0 +1,22 @@ +// Copyright 2023 Scape Agency BV + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at + +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +// ============================================================================ +// icon.gl | Font +// ============================================================================ + +@import "_font_face.scss"; +@import "_font_map.scss"; +@import "_font_var.scss"; diff --git a/src/scss/index.scss b/src/scss/index.scss index 3eb8ad1c..d2ff3b9a 100644 --- a/src/scss/index.scss +++ b/src/scss/index.scss @@ -41,6 +41,7 @@ TABLE OF CONTENTS $icongl_prefix: "igl_"; +@import "font/font.scss"; @import "_size.scss"; @import "_state.scss"; @import "_transform.scss";