Commit 381e4c58 authored by Luc Didry's avatar Luc Didry
Browse files

Fix font downloading

parent 0754f182
Pipeline #25477 passed with stage
in 29 seconds
......@@ -9,28 +9,28 @@ var customImg;
var fonts = {
'Comic Neue': {
'regular' : '../fonts/comic-neue/ComicNeue-Regular.woff2',
'bold' : '../fonts/comic-neue/ComicNeue-Bold.woff2',
'italic' : '../fonts/comic-neue/ComicNeue-Regular-Oblique.woff2',
'italic bold' : '../fonts/comic-neue/ComicNeue-Bold-Oblique.woff2',
'regular' : 'fonts/comic-neue/ComicNeue-Regular.woff2',
'bold' : 'fonts/comic-neue/ComicNeue-Bold.woff2',
'italic' : 'fonts/comic-neue/ComicNeue-Regular-Oblique.woff2',
'italic bold' : 'fonts/comic-neue/ComicNeue-Bold-Oblique.woff2',
},
'Comic Spice': {
'regular' : '../fonts/comic-spice/ComicSpice.woff2',
'bold' : '../fonts/comic-spice/ComicSpice.woff2',
'italic' : '../fonts/comic-spice/ComicSpice.woff2',
'italic bold' : '../fonts/comic-spice/ComicSpice.woff2',
'regular' : 'fonts/comic-spice/ComicSpice.woff2',
'bold' : 'fonts/comic-spice/ComicSpice.woff2',
'italic' : 'fonts/comic-spice/ComicSpice.woff2',
'italic bold' : 'fonts/comic-spice/ComicSpice.woff2',
},
'Hack': {
'regular' : '../fonts/hack/hack-regular-webfont.woff2',
'bold' : '../fonts/hack/hack-bold-webfont.woff2',
'italic' : '../fonts/hack/hack-italic-webfont.woff2',
'italic bold' : '../fonts/hack/hack-bolditalic-webfont.woff2',
'regular' : 'fonts/hack/hack-regular-webfont.woff2',
'bold' : 'fonts/hack/hack-bold-webfont.woff2',
'italic' : 'fonts/hack/hack-italic-webfont.woff2',
'italic bold' : 'fonts/hack/hack-bolditalic-webfont.woff2',
},
'Nosifer': {
'regular' : '../fonts/nosifer/nosifer.woff2',
'bold' : '../fonts/nosifer/nosifer.woff2',
'italic' : '../fonts/nosifer/nosifer.woff2',
'italic bold' : '../fonts/nosifer/nosifer.woff2',
'regular' : 'fonts/nosifer/nosifer.woff2',
'bold' : 'fonts/nosifer/nosifer.woff2',
'italic' : 'fonts/nosifer/nosifer.woff2',
'italic bold' : 'fonts/nosifer/nosifer.woff2',
},
};
......
......@@ -48,5 +48,5 @@ k.src="img/glitter-calc.png",k.onload=function(){e.drawImage(k,0,0),$("#svg").ht
else{var i={tl:0,tr:0,br:0,bl:0}
for(var c in i)o[c]=o[c]||i[c]}e.beginPath(),e.moveTo(a+o.tl,t),e.lineTo(a+s-o.tr,t),e.quadraticCurveTo(a+s,t,a+s,t+o.tr),e.lineTo(a+s,t+r-o.br),e.quadraticCurveTo(a+s,t+r,a+s-o.br,t+r),e.lineTo(a+o.bl,t+r),e.quadraticCurveTo(a,t+r,a,t+r-o.bl),e.lineTo(a,t+o.tl),e.quadraticCurveTo(a,t,a+o.tl,t),e.closePath(),n&&e.fill(),l&&e.stroke()}function show(e){var a=$("#"+e)
a.hasClass("d-none")&&a.removeClass("d-none")}function hide(e){var a=$("#"+e)
a.hasClass("d-none")||a.addClass("d-none")}function scalePreserveAspectRatio(e,a,t,s){return Math.min(t/e,s/a)}function alphaPercentageToHex(e){return Math.round(255-2.55*parseInt(e)).toString(16).replace(/^(.)$/,"0$1")}var svg=new C2S(800,400),showSettings="Show advanced settings",hideSettings="Hide advanced settings",workCanvas="Work with canvas",workSvg="Work with SVG",customImgText="Custom image",customImg,fonts={"Comic Neue":{regular:"../fonts/comic-neue/ComicNeue-Regular.woff2",bold:"../fonts/comic-neue/ComicNeue-Bold.woff2",italic:"../fonts/comic-neue/ComicNeue-Regular-Oblique.woff2","italic bold":"../fonts/comic-neue/ComicNeue-Bold-Oblique.woff2"},"Comic Spice":{regular:"../fonts/comic-spice/ComicSpice.woff2",bold:"../fonts/comic-spice/ComicSpice.woff2",italic:"../fonts/comic-spice/ComicSpice.woff2","italic bold":"../fonts/comic-spice/ComicSpice.woff2"},Hack:{regular:"../fonts/hack/hack-regular-webfont.woff2",bold:"../fonts/hack/hack-bold-webfont.woff2",italic:"../fonts/hack/hack-italic-webfont.woff2","italic bold":"../fonts/hack/hack-bolditalic-webfont.woff2"},Nosifer:{regular:"../fonts/nosifer/nosifer.woff2",bold:"../fonts/nosifer/nosifer.woff2",italic:"../fonts/nosifer/nosifer.woff2","italic bold":"../fonts/nosifer/nosifer.woff2"}},loadedFonts={}
a.hasClass("d-none")||a.addClass("d-none")}function scalePreserveAspectRatio(e,a,t,s){return Math.min(t/e,s/a)}function alphaPercentageToHex(e){return Math.round(255-2.55*parseInt(e)).toString(16).replace(/^(.)$/,"0$1")}var svg=new C2S(800,400),showSettings="Show advanced settings",hideSettings="Hide advanced settings",workCanvas="Work with canvas",workSvg="Work with SVG",customImgText="Custom image",customImg,fonts={"Comic Neue":{regular:"fonts/comic-neue/ComicNeue-Regular.woff2",bold:"fonts/comic-neue/ComicNeue-Bold.woff2",italic:"fonts/comic-neue/ComicNeue-Regular-Oblique.woff2","italic bold":"fonts/comic-neue/ComicNeue-Bold-Oblique.woff2"},"Comic Spice":{regular:"fonts/comic-spice/ComicSpice.woff2",bold:"fonts/comic-spice/ComicSpice.woff2",italic:"fonts/comic-spice/ComicSpice.woff2","italic bold":"fonts/comic-spice/ComicSpice.woff2"},Hack:{regular:"fonts/hack/hack-regular-webfont.woff2",bold:"fonts/hack/hack-bold-webfont.woff2",italic:"fonts/hack/hack-italic-webfont.woff2","italic bold":"fonts/hack/hack-bolditalic-webfont.woff2"},Nosifer:{regular:"fonts/nosifer/nosifer.woff2",bold:"fonts/nosifer/nosifer.woff2",italic:"fonts/nosifer/nosifer.woff2","italic bold":"fonts/nosifer/nosifer.woff2"}},loadedFonts={}
$(document).ready(function(){translate(),getParameters(),bindEvents(),toggleBgSettings(),refreshFilename(),waitForfont("wemake-font",function(){waitForfont("porn-font")})})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment