Skip to content

Commit d27f5c4

Browse files
committed
Remove unused icons from the font
1 parent 99ee16e commit d27f5c4

10 files changed

+169
-41
lines changed

font-selection.json

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"IcoMoonType": "selection",
3+
"icons": [
4+
{
5+
"icon": {
6+
"paths": [
7+
"M438.857 73.143q119.429 0 220.286 58.857t159.714 159.714 58.857 220.286-58.857 220.286-159.714 159.714-220.286 58.857-220.286-58.857-159.714-159.714-58.857-220.286 58.857-220.286 159.714-159.714 220.286-58.857zM512 785.714v-108.571q0-8-5.143-13.429t-12.571-5.429h-109.714q-7.429 0-13.143 5.714t-5.714 13.143v108.571q0 7.429 5.714 13.143t13.143 5.714h109.714q7.429 0 12.571-5.429t5.143-13.429zM510.857 589.143l10.286-354.857q0-6.857-5.714-10.286-5.714-4.571-13.714-4.571h-125.714q-8 0-13.714 4.571-5.714 3.429-5.714 10.286l9.714 354.857q0 5.714 5.714 10t13.714 4.286h105.714q8 0 13.429-4.286t6-10z"
8+
],
9+
"attrs": [],
10+
"isMulticolor": false,
11+
"tags": [
12+
"exclamation-circle"
13+
],
14+
"defaultCode": 61546,
15+
"grid": 14
16+
},
17+
"attrs": [],
18+
"properties": {
19+
"id": 100,
20+
"order": 4,
21+
"prevSize": 28,
22+
"code": 58880,
23+
"name": "exclamation-sign",
24+
"ligatures": ""
25+
},
26+
"setIdx": 0,
27+
"iconIdx": 0
28+
},
29+
{
30+
"icon": {
31+
"paths": [
32+
"M585.143 786.286v-91.429q0-8-5.143-13.143t-13.143-5.143h-54.857v-292.571q0-8-5.143-13.143t-13.143-5.143h-182.857q-8 0-13.143 5.143t-5.143 13.143v91.429q0 8 5.143 13.143t13.143 5.143h54.857v182.857h-54.857q-8 0-13.143 5.143t-5.143 13.143v91.429q0 8 5.143 13.143t13.143 5.143h256q8 0 13.143-5.143t5.143-13.143zM512 274.286v-91.429q0-8-5.143-13.143t-13.143-5.143h-109.714q-8 0-13.143 5.143t-5.143 13.143v91.429q0 8 5.143 13.143t13.143 5.143h109.714q8 0 13.143-5.143t5.143-13.143zM877.714 512q0 119.429-58.857 220.286t-159.714 159.714-220.286 58.857-220.286-58.857-159.714-159.714-58.857-220.286 58.857-220.286 159.714-159.714 220.286-58.857 220.286 58.857 159.714 159.714 58.857 220.286z"
33+
],
34+
"attrs": [],
35+
"isMulticolor": false,
36+
"tags": [
37+
"info-circle"
38+
],
39+
"defaultCode": 61530,
40+
"grid": 14
41+
},
42+
"attrs": [],
43+
"properties": {
44+
"id": 85,
45+
"order": 3,
46+
"name": "info-sign",
47+
"prevSize": 28,
48+
"code": 58882
49+
},
50+
"setIdx": 0,
51+
"iconIdx": 2
52+
},
53+
{
54+
"icon": {
55+
"paths": [
56+
"M733.714 419.429q0-16-10.286-26.286l-52-51.429q-10.857-10.857-25.714-10.857t-25.714 10.857l-233.143 232.571-129.143-129.143q-10.857-10.857-25.714-10.857t-25.714 10.857l-52 51.429q-10.286 10.286-10.286 26.286 0 15.429 10.286 25.714l206.857 206.857q10.857 10.857 25.714 10.857 15.429 0 26.286-10.857l310.286-310.286q10.286-10.286 10.286-25.714zM877.714 512q0 119.429-58.857 220.286t-159.714 159.714-220.286 58.857-220.286-58.857-159.714-159.714-58.857-220.286 58.857-220.286 159.714-159.714 220.286-58.857 220.286 58.857 159.714 159.714 58.857 220.286z"
57+
],
58+
"attrs": [],
59+
"isMulticolor": false,
60+
"tags": [
61+
"check-circle"
62+
],
63+
"defaultCode": 61528,
64+
"grid": 14
65+
},
66+
"attrs": [],
67+
"properties": {
68+
"id": 83,
69+
"order": 9,
70+
"prevSize": 28,
71+
"code": 58886,
72+
"name": "ok-sign"
73+
},
74+
"setIdx": 0,
75+
"iconIdx": 6
76+
},
77+
{
78+
"icon": {
79+
"paths": [
80+
"M658.286 475.429q0-105.714-75.143-180.857t-180.857-75.143-180.857 75.143-75.143 180.857 75.143 180.857 180.857 75.143 180.857-75.143 75.143-180.857zM950.857 950.857q0 29.714-21.714 51.429t-51.429 21.714q-30.857 0-51.429-21.714l-196-195.429q-102.286 70.857-228 70.857-81.714 0-156.286-31.714t-128.571-85.714-85.714-128.571-31.714-156.286 31.714-156.286 85.714-128.571 128.571-85.714 156.286-31.714 156.286 31.714 128.571 85.714 85.714 128.571 31.714 156.286q0 125.714-70.857 228l196 196q21.143 21.143 21.143 51.429z"
81+
],
82+
"width": 951,
83+
"attrs": [],
84+
"isMulticolor": false,
85+
"tags": [
86+
"search"
87+
],
88+
"defaultCode": 61442,
89+
"grid": 14
90+
},
91+
"attrs": [],
92+
"properties": {
93+
"id": 2,
94+
"order": 1,
95+
"prevSize": 28,
96+
"code": 58887,
97+
"name": "icon-search"
98+
},
99+
"setIdx": 0,
100+
"iconIdx": 7
101+
}
102+
],
103+
"height": 1024,
104+
"metadata": {
105+
"name": "slate",
106+
"license": "SIL OFL 1.1"
107+
},
108+
"preferences": {
109+
"showGlyphs": true,
110+
"showQuickUse": true,
111+
"showQuickUse2": true,
112+
"showSVGs": true,
113+
"fontPref": {
114+
"prefix": "icon-",
115+
"metadata": {
116+
"fontFamily": "slate",
117+
"majorVersion": 1,
118+
"minorVersion": 0,
119+
"description": "Based on FontAwesome",
120+
"license": "SIL OFL 1.1"
121+
},
122+
"metrics": {
123+
"emSize": 1024,
124+
"baseline": 6.25,
125+
"whitespace": 50
126+
},
127+
"resetPoint": 58880,
128+
"showSelector": false,
129+
"selector": "class",
130+
"classSelector": ".icon",
131+
"showMetrics": false,
132+
"showMetadata": true,
133+
"showVersion": true,
134+
"ie7": false
135+
},
136+
"imagePref": {
137+
"prefix": "icon-",
138+
"png": true,
139+
"useClassSelector": true,
140+
"color": 4473924,
141+
"bgColor": 16777215
142+
},
143+
"historySize": 100,
144+
"showCodes": true,
145+
"gridSize": 16,
146+
"showLiga": false
147+
}
148+
}

source/fonts/icomoon.eot

-2.71 KB
Binary file not shown.

source/fonts/icomoon.svg

-18
This file was deleted.

source/fonts/icomoon.ttf

-2.55 KB
Binary file not shown.

source/fonts/icomoon.woff

-2.75 KB
Binary file not shown.

source/fonts/slate.eot

1.83 KB
Binary file not shown.

source/fonts/slate.svg

+14
Loading

source/fonts/slate.ttf

1.68 KB
Binary file not shown.

source/fonts/slate.woff

1.75 KB
Binary file not shown.

source/stylesheets/_icon-font.scss

+7-23
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
@font-face {
2-
font-family: 'icomoon';
3-
src:font-url('icomoon.eot');
4-
src:font-url('icomoon.eot?#iefix') format('embedded-opentype'),
5-
font-url('icomoon.ttf') format('truetype'),
6-
font-url('icomoon.woff') format('woff'),
7-
font-url('icomoon.svg#icomoon') format('svg');
2+
font-family: 'slate';
3+
src:font-url('slate.eot?-syv14m');
4+
src:font-url('slate.eot?#iefix-syv14m') format('embedded-opentype'),
5+
font-url('slate.woff?-syv14m') format('woff'),
6+
font-url('slate.ttf?-syv14m') format('truetype'),
7+
font-url('slate.svg?-syv14m#slate') format('svg');
88
font-weight: normal;
99
font-style: normal;
1010
}
1111

1212
%icon {
13-
font-family: 'icomoon';
13+
font-family: 'slate';
1414
speak: none;
1515
font-style: normal;
1616
font-weight: normal;
@@ -23,26 +23,10 @@
2323
@extend %icon;
2424
content: "\e600";
2525
}
26-
%icon-question-sign {
27-
@extend %icon;
28-
content: "\e601";
29-
}
3026
%icon-info-sign {
3127
@extend %icon;
3228
content: "\e602";
3329
}
34-
%icon-remove-sign {
35-
@extend %icon;
36-
content: "\e603";
37-
}
38-
%icon-plus-sign {
39-
@extend %icon;
40-
content: "\e604";
41-
}
42-
%icon-minus-sign {
43-
@extend %icon;
44-
content: "\e605";
45-
}
4630
%icon-ok-sign {
4731
@extend %icon;
4832
content: "\e606";

0 commit comments

Comments
 (0)