From eaea3a579dbf6f3032143be7ad4a83dabe27acd4 Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Tue, 18 Dec 2018 12:05:10 -0400 Subject: [PATCH 1/2] make URL available --- Gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gulpfile.js b/Gulpfile.js index 9c0a6e4..82d406b 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -90,7 +90,7 @@ const dlFonts = function(dest) { const urls = cssUrlParser(fs.readFileSync('styles/fonts.css').toString()) .filter(pathStr => !fs.existsSync(path.join(dest, pathStr))) .map(urlStr => { - const tmpUrl = new URL(url.resolve("http://www1.wdr.de/resources/fonts/", urlStr)); + const tmpUrl = new url.URL(url.resolve("http://www1.wdr.de/resources/fonts/", urlStr)); return url.format(tmpUrl, { fragment: false, search: false }); }); From 11151080060911d6acdfd9616d7b2dfc1e33a2a5 Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Tue, 18 Dec 2018 12:05:22 -0400 Subject: [PATCH 2/2] CSS url --- styles/fonts.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/styles/fonts.css b/styles/fonts.css index 5489766..85459ae 100644 --- a/styles/fonts.css +++ b/styles/fonts.css @@ -1,28 +1,28 @@ @font-face { font-family: "WDRSlab"; font-weight: 400; - src: url("../fonts/wdrslab-regularvz-v101-web.eot?#iefix") format("embedded-opentype"), url("../fonts/wdrslab-regularvz-v101-web.woff") format("woff"), url("../fonts/wdrslab-regularvz-v101-web.ttf") format("truetype"), url("../fonts/wdrslab-regularvz-v101-web.svg") format("svg"); + src: url(../fonts/wdrslab-regularvz-v101-web.eot?#iefix) format("embedded-opentype"), url(../fonts/wdrslab-regularvz-v101-web.woff) format("woff"), url(../fonts/wdrslab-regularvz-v101-web.ttf) format("truetype"), url(../fonts/wdrslab-regularvz-v101-web.svg) format("svg"); } @font-face { font-family: "WDRSlab"; font-weight: 800; - src: url("../fonts/wdrslab-boldvz-v101-web.eot?#iefix") format("embedded-opentype"), url("../fonts/wdrslab-boldvz-v101-web.woff") format("woff"), url("../fonts/wdrslab-boldvz-v101-web.ttf") format("truetype"), url("../fonts/wdrslab-boldvz-v101-web.svg") format("svg"); + src: url(../fonts/wdrslab-boldvz-v101-web.eot?#iefix) format("embedded-opentype"), url(../fonts/wdrslab-boldvz-v101-web.woff) format("woff"), url(../fonts/wdrslab-boldvz-v101-web.ttf) format("truetype"), url(../fonts/wdrslab-boldvz-v101-web.svg) format("svg"); } @font-face { font-family: "Thesis"; font-style: italic; - src: url("../fonts/TheSans_LT_TT5_.woff") format("woff"), url("../fonts/TheSans_LT_TT5_.svg") format("svg"); + src: url(../fonts/TheSans_LT_TT5_.woff) format("woff"), url(../fonts/TheSans_LT_TT5_.svg) format("svg"); } @font-face { font-family: "Thesis"; font-style: italic; font-weight: 700; - src: url("../fonts/TheSans_LT_TT7_.woff") format("woff"), url("../fonts/TheSans_LT_TT7_.svg") format("svg"); + src: url(../fonts/TheSans_LT_TT7_.woff) format("woff"), url(../fonts/TheSans_LT_TT7_.svg) format("svg"); } @font-face { font-family: "WDR Iconfont"; font-weight: 400; - src: url("../fonts/wdr-iconfont.eot?#iefix") format("embedded-opentype"), url("../fonts/wdr-iconfont.woff") format("woff"), url("../fonts/wdr-iconfont.ttf") format("truetype"), url("../fonts/wdr-iconfont.svg#wdr-iconfont") format("svg"); + src: url(../fonts/wdr-iconfont.eot?#iefix) format("embedded-opentype"), url(../fonts/wdr-iconfont.woff) format("woff"), url(../fonts/wdr-iconfont.ttf) format("truetype"), url(../fonts/wdr-iconfont.svg#wdr-iconfont) format("svg"); } @font-face {