Leon Sans is a geometric sans-serif typeface made with code in 2019 by Jongmin Kim.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
58 KiB

/*!
* VERSION: 1.6.5
* DATE: 2020-09-20
* https://leon-sans.com
*
5 years ago
* @license Copyright (c) 2019-2020, Jongmin Kim. All rights reserved.
**/
var LeonSans=function(t){var r={};function i(e){if(r[e])return r[e].exports;var a=r[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=r,i.d=function(t,r,e){i.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,r){if(1&r&&(t=i(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var a in t)i.d(e,a,function(r){return t[r]}.bind(null,a));return e},i.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(r,"a",r),r},i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},i.p="",i(i.s=0)}([function(t,r,i){var e=i(1).default;t.exports=e},function(t,r,i){"use strict";i.r(r),i.d(r,"default",(function(){return Zt}));var e=1,a=2*Math.PI;function s(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=.49*t.rect.w*r,s=.49*(t.rect.h+220)*r;return{x:i,y:e,w:a,h:s}}function n(t,r,i){return{x:t/2,y:(r-130*.49*i)/2}}function l(t,r,i){return{r:r,cr:i,fr1:1,fr2:.78,gx1:t.ratio.x1,gx2:t.ratio.x2,gy1:t.ratio.y1,gy2:t.ratio.y2}}function f(t,r,i,e,a){var s=(e-a)/(r-i)*(t-i)+a;return s<a?s=a:s>e&&(s=e),s}function o(t){var r,i,e,a,s,n,l,o,h,y,d,c=t.typo.p.length,p=[];for(r=0;r<c;r++)for(a=(s=t.typo.p[r]).cv.length,i=0;i<a;i++){if(l=(n=s.cv[i]).addRect(t.rect),o=s.d,y=(h=t.pointsLength.lengths[r])/t.pointsLength.max,d=0,r>0)for(e=0;e<r;e++)d+=t.pointsLength.lengths[e]/t.pointsLength.max;y+=d,p.push({pos:l,drawing:t.drawing,direction:o,lengths:h,maxDrawing:y,minDrawing:d,closePath:n.ratio.c,stroke:(t,r)=>{var i=f(r.drawing.value,r.maxDrawing,r.minDrawing,1,0);if(i>0&&"a"!=r.pos.type){var e=r.lengths*i;t.setLineDash([r.lengths]),t.lineDashOffset=r.direction*(e+r.lengths),t.stroke()}}})}return p}function h(t,r){var i,e,a=t.length,s=[];for(i=0;i<a;i++)e=t[i].addRect(r.rect),s.push(e);return s}function y(t,r){var i,e,s,n=r.lines.length;for(i=0;i<n;i++)"a"==(s=(e=r.lines[i]).pos).type?(t.beginPath(),t.arc(s.x,s.y,s.radius*e.drawing.value,0,a),t.fill(),t.closePath()):"m"==s.type?(t.beginPath(),t.moveTo(s.x,s.y)):"l"==s.type?(t.lineTo(s.x,s.y),e.stroke(t,e)):"b"==s.type&&(t.bezierCurveTo(s.x,s.y,s.x2,s.y2,s.x3,s.y3),e.stroke(t,e))}function d(t,r){t.save(),t.lineWidth=1;var i,e=r.lines.length;for(i=0;i<e;i++)p(t,r.lines[i]);for(t.restore(),t.save(),t.lineWidth=1,e=r.typo.p.length,i=0;i<e;i++)c(t,r.typo.p[i],r);t.restore()}function c(t,r,i){var e,s,n,l=r.v.length;for(e=0;e<l;e++)n=(s=r.cv[e]).addRect(i.rect),"b"==s.type?(t.fillStyle="#ff2a00",t.beginPath(),t.arc(n.x3+(n.x3-n.x2),n.y3+(n.y3-n.y2),1.5,0,a),t.fill(),t.beginPath(),t.arc(n.x2,n.y2,1.5,0,a),t.fill(),t.beginPath(),t.moveTo(n.x2,n.y2),t.lineTo(n.x3,n.y3),t.lineTo(n.x3+(n.x3-n.x2),n.y3+(n.y3-n.y2)),t.stroke(),t.beginPath(),t.fillStyle="#ffffff",t.arc(n.x3,n.y3,2.5,0,a),t.fill(),t.stroke()):(t.beginPath(),t.fillStyle="#ffffff",t.strokeStyle="#ff2a00",t.arc(n.x,n.y,2.5,0,a),t.fill(),t.stroke())}function p(t,r){var i=r.pos;"a"!=i.type&&("m"==i.type?(t.strokeStyle="#ff2a00",t.beginPath(),t.moveTo(i.x,i.y)):"l"==i.type?t.lineTo(i.x,i.y):"b"==i.type&&t.bezierCurveTo(i.x,i.y,i.x2,i.y2,i.x3,i.y3),t.stroke())}function v(t,r){t.save(),t.beginPath(),t.lineWidth=1,t.strokeStyle="#aaaaaa";var i,e,a=r.guide.length;for(i=0;i<a;i++)e=r.rect.y+r.grid[i],t.moveTo(r.rect.x,e),t.lineTo(r.rect.x+r.rect.w,e);t.stroke(),t.lineWidth=1,t.beginPath(),t.strokeStyle="#aaaaaa",t.rect(r.rect.x,r.rect.y,r.rect.w,r.rect.h),t.stroke(),t.restore()}var x,u=Math.cos,g=Math.sin;function b(t,r,i,e,s,n){var l,f,o,h,y,d=r.wavePaths.length,c=function(t,r){return 120*t*r}(e,i),p=[];for(t.beginPath(),l=0;l<d;l++){if(f=r.wavePaths[l],n){var v=Math.random()*c-c/2,x=Math.random()*c-c/2;f.rx=f.x+v*u(f.rotation),f.ry=f.y+v*g(f.rotation),