From 0abd4130cfea36e2943a1af662beac48f9dc2745 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Sun, 22 May 2016 15:26:16 +0200 Subject: [PATCH] [TASK] Use own iconfont set Reduce overhead in initial load --- assets/icons/fonts/hopglass.eot | Bin 0 -> 3352 bytes assets/icons/fonts/hopglass.svg | 27 +++++++++ assets/icons/fonts/hopglass.ttf | Bin 0 -> 3184 bytes assets/icons/fonts/hopglass.woff | Bin 0 -> 2300 bytes assets/icons/fonts/hopglass.woff2 | Bin 0 -> 1700 bytes assets/icons/hopglass-icons.css | 92 ++++++++++++++++++++++++++++++ bower.json | 1 - html/index.html | 2 +- index.html | 2 +- lib/map.js | 2 +- tasks/build.js | 4 +- 11 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 assets/icons/fonts/hopglass.eot create mode 100644 assets/icons/fonts/hopglass.svg create mode 100644 assets/icons/fonts/hopglass.ttf create mode 100644 assets/icons/fonts/hopglass.woff create mode 100644 assets/icons/fonts/hopglass.woff2 create mode 100644 assets/icons/hopglass-icons.css diff --git a/assets/icons/fonts/hopglass.eot b/assets/icons/fonts/hopglass.eot new file mode 100644 index 0000000000000000000000000000000000000000..c98534acce803009679a9b96251e6a6796287354 GIT binary patch literal 3352 zcmd^C-EULb5udr&_tSPhZO4VgzSmCTB#^ClF8x zic}szydYFo`#`IR)v8jrTJf;0x?8p4t^0sfX)Cr5Z6&&^R@&}EA!MaKtU`b1+J=4%TZ zdiD&S$g>;s`t%i$6^MZ3On@+%2;Bk%*u4YN=p~uaNXr^g)X(Z67X2 z;zMGwS`4Acj%-A*7%UOrB!zT7#^=Bvsop=QZ_w54co53ZApm;(+~Fx2dE(l3QRRW4bEw=8=_XnD7Fp@#)6q(_2s9eEQL5>*lG=E2u1nqtpH+orf=U>h-#n zy>EN>c{AR2Z^*Oine-&xo98f-~61#~-wRxS_$xYM|^+!|DR3eq|CwTov&kcM(6PFv%Tcaqi z@?Qk#nltHs?yP6k7v{h)r(+-eRMSG5@j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crl_TT-zxNq;b{|y4D B599y< literal 0 HcmV?d00001 diff --git a/assets/icons/fonts/hopglass.svg b/assets/icons/fonts/hopglass.svg new file mode 100644 index 0000000..da13e93 --- /dev/null +++ b/assets/icons/fonts/hopglass.svg @@ -0,0 +1,27 @@ + + + +Generated by Fontastic.me + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/icons/fonts/hopglass.ttf b/assets/icons/fonts/hopglass.ttf new file mode 100644 index 0000000000000000000000000000000000000000..d117d0cd3e44fa916e7e29fbe10a9d730601881a GIT binary patch literal 3184 zcmd^B-ESMm5uds5JCYJ5@vD+Z-jNh3$<`N-N5+kk3=j{(GA zP8SOk^4}b*H1{X!>1h)1|KLQj^$;JMo?p7A9^lCqH;C__D~%Ui?>qL${sHmb^Mz|= z_&%64{|fQ?LSer6?$>Ys2tZvU*}ZaUajD<&Nddq?{?H3-ZPahA8vG9%k9-9VjsyU| zAOCCi`BMiSw^;n3Ky})-u_e7#0nyCU{wCNG5A?IuQe%o}%d(86h8*Bs5JAB+I7$4e z+Vd;;7Tjb8qH62egZl*uqmw5mAiFK>-oUMAThMEdc1%pE9wK{E&r{`o40l1NU%vL! zVV0;e+_rg29;ve4ZpR1k0dZ_S?I6IL^o)?Lz?^Lh+pg`7ZFA?+&Tn`Au=B;v?$diu z-+KD#Zu{((U$FAd7j{CJ3 zn5%DSC_P^=OXQ1X*KJt*|3A$GX}CzW`V4hEjTO9$@8RD$fjh=s;%;*HIJTRRRU6lF z9UK51QE$|WTBc=sOQ0A+>*qCPiAEI?zoA;1=J9BnRf}njVp^k^ z{E%RIk>n6>CXaEMUX&v7R66PNBvP4ZMDqBO>7yt`BXNYo#p994kt4C_@K88t&IU&; zYs7j@QGB7$!H}jkG~?RP@o4y9v#-BBcMf3M!cfzP+yhm8!1JQpE$m-ko^lH<6hU%`BQQmch}SbtmaP&q-21EvPuZ57DA<+^ zC)F>63}IFisOCQ9@5O`_^){d!^_n5{drj*YW=yMICNzfo`iA>Ta{fg3iM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M>cSk-HMy24oSL{IK(1wotuLZ`5$Z)5>B!AwBizOg}~MmLKX zyqXyNR3#c)!DhtYyzA-pRMpHRc&ps~60AAZ?L*pnu3A?rrHNf z4+kQ;I4N`4t&?jhvj#%bkq5{4x9H+5EMnKgp`2JKprOLP_s<@j!$@d20nRxLoxw!x z{Do2sqj5z-DeVk87%H|({FL00=Ws#jz>hib&e-mP@ov-a&02Y^U2F3o^Wa!N%Caz` zU`|Gh9WU@zxH&i^Gtg?oW<7gDX1#mOd{cab|MtD9i7p&^5e^MYNeowuYU2lh5U5)3 z|MCQ;x<;O;ukWkaq3a*vO1w6i4;HD(p8URcHfa`GG z&?KBun*x7y9?eY}D$1a@PK8(K^RV%j;xyae_u(QRT0WTSb|Y4{K-5@dJ0}5ZIC4!g zE2`jS`Re-K>#xVWyJU|t^|Eer2Qtu`Zyi?xxkRKqJp>dVIQKpAGdTrN(To%iwCYj3J@o^j)*)73ai^Q+2|4JEFY70oIz zL}J=ZQq9g(ZvCm-w~#Zy@&y%BGl?m}@WH5WYW!d;HHm(S#?UT)|6|1i=0cj1~LK literal 0 HcmV?d00001 diff --git a/assets/icons/fonts/hopglass.woff2 b/assets/icons/fonts/hopglass.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..cce227441683b22d72d300daabbcad81e633863a GIT binary patch literal 1700 zcmV;V23z@ePew8T0RR9100yK04FCWD01S8l00vC}0RR9100000000000000000000 z0000#Mn+Uk92y=5U;u+U5eN#4IEY69HUcCAFbgUG1Rw>25(k168}kVx5jJ~rl9Bxh z$>|u_;_{xE7AvC5qR7jYd>f<84>U#ZO4u{w60B#>K_BgnQo+l#U`Q2^P{Mx_xNumP70 zY6H!~PwG-BVafiGAdI&Y@3|NX{J4x(%hGBnZV68XWW&}KkRW&0ueD`?r4mAbA!P7k zVIFX`%Cs$8E{z8cIq`%zlK|fi&;M`pBKAIJkwYv*LZu{_dG%Cx78lCq0heaTHZO8S zdqlNcfh@x&!Y>T;z?(Q|$t~tU+5+$gfLs24{LOoRF5ucGg_2@m2MB$oR_4ft95uuuqlNetBPy8VISBA#>_WRfP zn0(wB`Vxooi}iA+bnQ zUOA&^9B6sod zQ`!RRJ0X~eMy|nyr&kj=59I>@BT4(~s%UG#n-ss0fT1hA@Ic;cXt_#)2G7Iv9BsHn z^gOHN6;O#IOa0V^U5&el5p$c?B{MZMGg|Ln?(UkU|9`*hcTnQZ9wx>5DupqM!3u+?u5}q;bx3J3 z{QtY_)-L{ZZ20-$Qy11P?p#9ht}Iz{QP znarSlPwbtH=774WuRLCxf{Qv>9>rNXTTvtN7uq_oHfmImaBGcrs_!yzqA7w<}qXU2*9?(myq#cOh4JfTX zV}X#;DR~qL7aq-)Q659;B#)(VXNDv7%UVmS3wEucz&N78UQ>RT$i^R-zdt?o7#)lya8+fvzuBo4?_DMAxz62c1+4{8o_PTfw| zlh~6$-0;N>FFb0?{XpDl>j|@T)z=DMqK6P991BGsdj`7sx_Nnc`T-m^Z>~_XV9@gsN6ZxcL4kEN&ly=N#^y&l&n3Vvz{1q}lW2mfK$myl6V(cl3dHChzVUPU;b zUD>kYs-rT!=0-MDKD!2~s?A#pt4%eMy&Shz*%i%10aje85F4?H2PoxMy%&JfN - + diff --git a/index.html b/index.html index 96935bc..cc6f536 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + diff --git a/lib/map.js b/lib/map.js index ea44443..ff030a0 100644 --- a/lib/map.js +++ b/lib/map.js @@ -86,7 +86,7 @@ define(["map/clientlayer", "map/labelslayer", onAdd: function () { var button = L.DomUtil.create("button", "coord-picker"); - button.textContent = "\uF2A6"; + button.textContent = "\uF3A3"; // Click propagation isn't disabled as this causes problems with the // location picking mode; instead propagation is stopped in onClick(). diff --git a/tasks/build.js b/tasks/build.js index 2fd1e83..b360a60 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -43,11 +43,11 @@ module.exports = function (grunt) { }, ionicons: { src: ["fonts/*", - "css/ionicons.min.css" + "hopglass-icons.css" ], expand: true, dest: "build/", - cwd: "bower_components/ionicons/" + cwd: "assets/icons/" }, leafletImages: { src: ["images/*"],