Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76925c32a0 | ||
|
|
be4aa89313 | ||
|
|
44f008b186 | ||
|
|
6b3b1843bd | ||
|
|
23db7f2706 | ||
|
|
ec005a4189 | ||
|
|
641c23b36d | ||
|
|
f7328566b9 | ||
|
|
2731a29800 | ||
|
|
0ed84eda47 | ||
|
|
ee92c0d751 | ||
|
|
081c8d0a11 | ||
|
|
b3d8f8fdc5 | ||
|
|
56f96afd28 | ||
|
|
fff5250117 | ||
|
|
b7acf31666 | ||
|
|
e20e26ed12 | ||
|
|
46ee9fa8d9 | ||
|
|
7d4cf1feb1 | ||
|
|
d4ccb8fde3 | ||
|
|
98339dfbfd | ||
|
|
591f013dd4 | ||
|
|
0dbe98229f | ||
|
|
0b1f3fdeae | ||
|
|
560be6a5df | ||
|
|
aa72d6fec2 | ||
|
|
0ee2a4164b | ||
|
|
1b9e40b929 | ||
|
|
7cbd168631 | ||
|
|
e97eb07752 | ||
|
|
3ee6c3bcf4 | ||
|
|
cb0b555bc1 | ||
|
|
c0495b65b5 | ||
|
|
d0f58770cd | ||
|
|
27a2783818 | ||
|
|
72428feb5e | ||
|
|
5207819363 |
@@ -7,7 +7,7 @@
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"version": "1.3.2",
|
||||
"version": "1.4.1",
|
||||
"name": "Ionicons",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"build_hash": "76b440a661f5d99c6cb4fcb98f9f7dda",
|
||||
"build_hash": "",
|
||||
"prefix": "ion-",
|
||||
"version": "1.3.2",
|
||||
"version": "1.4.1",
|
||||
"name": "Ionicons",
|
||||
"icons": [
|
||||
{
|
||||
@@ -12,6 +12,262 @@
|
||||
"code": "0xf100",
|
||||
"name": "alert-circled"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c7",
|
||||
"name": "android-add"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c6",
|
||||
"name": "android-add-contact"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c8",
|
||||
"name": "android-alarm"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c9",
|
||||
"name": "android-archive"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ca",
|
||||
"name": "android-arrow-back"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cb",
|
||||
"name": "android-arrow-down-left"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cc",
|
||||
"name": "android-arrow-down-right"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cd",
|
||||
"name": "android-arrow-up-left"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ce",
|
||||
"name": "android-arrow-up-right"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cf",
|
||||
"name": "android-battery"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d0",
|
||||
"name": "android-book"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d1",
|
||||
"name": "android-calendar"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d2",
|
||||
"name": "android-call"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d3",
|
||||
"name": "android-camera"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d4",
|
||||
"name": "android-chat"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d5",
|
||||
"name": "android-checkmark"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d6",
|
||||
"name": "android-clock"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d7",
|
||||
"name": "android-close"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d8",
|
||||
"name": "android-contact"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d9",
|
||||
"name": "android-contacts"
|
||||
},
|
||||
{
|
||||
"code": "0xf2da",
|
||||
"name": "android-data"
|
||||
},
|
||||
{
|
||||
"code": "0xf2db",
|
||||
"name": "android-developer"
|
||||
},
|
||||
{
|
||||
"code": "0xf2dc",
|
||||
"name": "android-display"
|
||||
},
|
||||
{
|
||||
"code": "0xf2dd",
|
||||
"name": "android-download"
|
||||
},
|
||||
{
|
||||
"code": "0xf2de",
|
||||
"name": "android-dropdown"
|
||||
},
|
||||
{
|
||||
"code": "0xf2df",
|
||||
"name": "android-earth"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e0",
|
||||
"name": "android-folder"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e1",
|
||||
"name": "android-forums"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e2",
|
||||
"name": "android-friends"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e3",
|
||||
"name": "android-hand"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e4",
|
||||
"name": "android-image"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e5",
|
||||
"name": "android-inbox"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e6",
|
||||
"name": "android-information"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e7",
|
||||
"name": "android-keypad"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e8",
|
||||
"name": "android-lightbulb"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e9",
|
||||
"name": "android-locate"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ea",
|
||||
"name": "android-location"
|
||||
},
|
||||
{
|
||||
"code": "0xf2eb",
|
||||
"name": "android-mail"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ec",
|
||||
"name": "android-microphone"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ed",
|
||||
"name": "android-mixer"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ee",
|
||||
"name": "android-more"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ef",
|
||||
"name": "android-note"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f0",
|
||||
"name": "android-playstore"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f1",
|
||||
"name": "android-printer"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f2",
|
||||
"name": "android-promotion"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f3",
|
||||
"name": "android-reminder"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f4",
|
||||
"name": "android-remove"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f5",
|
||||
"name": "android-search"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f6",
|
||||
"name": "android-send"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f7",
|
||||
"name": "android-settings"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f8",
|
||||
"name": "android-share"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fa",
|
||||
"name": "android-social"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f9",
|
||||
"name": "android-social-user"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fb",
|
||||
"name": "android-sort"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fc",
|
||||
"name": "android-star"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fd",
|
||||
"name": "android-stopwatch"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fe",
|
||||
"name": "android-storage"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ff",
|
||||
"name": "android-system-back"
|
||||
},
|
||||
{
|
||||
"code": "0xf300",
|
||||
"name": "android-system-home"
|
||||
},
|
||||
{
|
||||
"code": "0xf301",
|
||||
"name": "android-system-windows"
|
||||
},
|
||||
{
|
||||
"code": "0xf302",
|
||||
"name": "android-timer"
|
||||
},
|
||||
{
|
||||
"code": "0xf303",
|
||||
"name": "android-trash"
|
||||
},
|
||||
{
|
||||
"code": "0xf304",
|
||||
"name": "android-volume"
|
||||
},
|
||||
{
|
||||
"code": "0xf305",
|
||||
"name": "android-wifi"
|
||||
},
|
||||
{
|
||||
"code": "0xf102",
|
||||
"name": "archive"
|
||||
@@ -156,6 +412,10 @@
|
||||
"code": "0xf26c",
|
||||
"name": "briefcase"
|
||||
},
|
||||
{
|
||||
"code": "0xf2be",
|
||||
"name": "bug"
|
||||
},
|
||||
{
|
||||
"code": "0xf26d",
|
||||
"name": "calculator"
|
||||
@@ -300,6 +560,10 @@
|
||||
"code": "0xf276",
|
||||
"name": "earth"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bf",
|
||||
"name": "edit"
|
||||
},
|
||||
{
|
||||
"code": "0xf277",
|
||||
"name": "egg"
|
||||
@@ -316,6 +580,10 @@
|
||||
"code": "0xf133",
|
||||
"name": "eye"
|
||||
},
|
||||
{
|
||||
"code": "0xf306",
|
||||
"name": "eye-disabled"
|
||||
},
|
||||
{
|
||||
"code": "0xf278",
|
||||
"name": "female"
|
||||
@@ -352,6 +620,10 @@
|
||||
"code": "0xf27a",
|
||||
"name": "fork"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c0",
|
||||
"name": "fork-repo"
|
||||
},
|
||||
{
|
||||
"code": "0xf13a",
|
||||
"name": "forward"
|
||||
@@ -624,6 +896,18 @@
|
||||
"code": "0xf171",
|
||||
"name": "ios7-clock-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bc",
|
||||
"name": "ios7-close"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bd",
|
||||
"name": "ios7-close-empty"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bb",
|
||||
"name": "ios7-close-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf178",
|
||||
"name": "ios7-cloud"
|
||||
@@ -652,6 +936,14 @@
|
||||
"code": "0xf17a",
|
||||
"name": "ios7-cloudy"
|
||||
},
|
||||
{
|
||||
"code": "0xf308",
|
||||
"name": "ios7-cloudy-night"
|
||||
},
|
||||
{
|
||||
"code": "0xf307",
|
||||
"name": "ios7-cloudy-night-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf179",
|
||||
"name": "ios7-cloudy-outline"
|
||||
@@ -1092,6 +1384,10 @@
|
||||
"code": "0xf1dd",
|
||||
"name": "ios7-skipforward-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf309",
|
||||
"name": "ios7-snowy"
|
||||
},
|
||||
{
|
||||
"code": "0xf290",
|
||||
"name": "ios7-speedometer"
|
||||
@@ -1344,6 +1640,10 @@
|
||||
"code": "0xf208",
|
||||
"name": "minus-round"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c1",
|
||||
"name": "model-s"
|
||||
},
|
||||
{
|
||||
"code": "0xf20a",
|
||||
"name": "monitor"
|
||||
@@ -1368,10 +1668,18 @@
|
||||
"code": "0xf2a3",
|
||||
"name": "navigate"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c2",
|
||||
"name": "no-smoking"
|
||||
},
|
||||
{
|
||||
"code": "0xf2a4",
|
||||
"name": "nuclear"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c3",
|
||||
"name": "paper-airplane"
|
||||
},
|
||||
{
|
||||
"code": "0xf20f",
|
||||
"name": "paperclip"
|
||||
@@ -1416,6 +1724,10 @@
|
||||
"code": "0xf215",
|
||||
"name": "play"
|
||||
},
|
||||
{
|
||||
"code": "0xf30a",
|
||||
"name": "playstation"
|
||||
},
|
||||
{
|
||||
"code": "0xf218",
|
||||
"name": "plus"
|
||||
@@ -1556,6 +1868,10 @@
|
||||
"code": "0xf230",
|
||||
"name": "social-facebook-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c4",
|
||||
"name": "social-freebsd-devil"
|
||||
},
|
||||
{
|
||||
"code": "0xf233",
|
||||
"name": "social-github"
|
||||
@@ -1628,6 +1944,10 @@
|
||||
"code": "0xf240",
|
||||
"name": "social-tumblr-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c5",
|
||||
"name": "social-tux"
|
||||
},
|
||||
{
|
||||
"code": "0xf243",
|
||||
"name": "social-twitter"
|
||||
@@ -1696,6 +2016,10 @@
|
||||
"code": "0xf2b5",
|
||||
"name": "stats-bars"
|
||||
},
|
||||
{
|
||||
"code": "0xf30b",
|
||||
"name": "steam"
|
||||
},
|
||||
{
|
||||
"code": "0xf24f",
|
||||
"name": "stop"
|
||||
@@ -1775,6 +2099,10 @@
|
||||
{
|
||||
"code": "0xf2ba",
|
||||
"name": "wrench"
|
||||
},
|
||||
{
|
||||
"code": "0xf30c",
|
||||
"name": "xbox"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,6 +15,7 @@ def main():
|
||||
|
||||
data = get_build_data()
|
||||
|
||||
rename_svg_glyph_names(data)
|
||||
generate_scss(data)
|
||||
generate_cheatsheet(data)
|
||||
generate_component_json(data)
|
||||
@@ -28,6 +29,23 @@ def generate_font_files():
|
||||
call(cmd, shell=True)
|
||||
|
||||
|
||||
def rename_svg_glyph_names(data):
|
||||
# hacky and slow (but safe) way to rename glyph-name attributes
|
||||
svg_path = os.path.join(FONTS_FOLDER_PATH, 'ionicons.svg')
|
||||
svg_file = open(svg_path, 'r+')
|
||||
svg_text = svg_file.read()
|
||||
svg_file.seek(0)
|
||||
|
||||
for ionicon in data['icons']:
|
||||
# uniF2CA
|
||||
org_name = 'uni%s' % (ionicon['code'].replace('0x', '').upper())
|
||||
ion_name = 'ion-%s' % (ionicon['name'])
|
||||
svg_text = svg_text.replace(org_name, ion_name)
|
||||
|
||||
svg_file.write(svg_text)
|
||||
svg_file.close()
|
||||
|
||||
|
||||
def generate_scss(data):
|
||||
print "Generate SCSS"
|
||||
font_name = data['name']
|
||||
@@ -57,7 +75,7 @@ def generate_scss(data):
|
||||
|
||||
group = [ '.%s' % (data['name'].lower()) ]
|
||||
for ionicon in data['icons']:
|
||||
group.append('.%s%s' % (css_prefix, ionicon['name']) )
|
||||
group.append('.#{$ionicons-prefix}%s' % (ionicon['name']) )
|
||||
|
||||
d.append( ',\n'.join(group) )
|
||||
|
||||
@@ -83,7 +101,7 @@ def generate_css_from_scss(data):
|
||||
css_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.css')
|
||||
css_min_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.min.css')
|
||||
|
||||
cmd = "sass %s %s" % (scss_file_path, css_file_path)
|
||||
cmd = "sass %s %s --style compact" % (scss_file_path, css_file_path)
|
||||
call(cmd, shell=True)
|
||||
|
||||
print "Generate Minified CSS From SCSS"
|
||||
@@ -150,7 +168,7 @@ def generate_component_json(data):
|
||||
"fonts/%s.eot" % (data['name'].lower()),
|
||||
"fonts/%s.svg" % (data['name'].lower()),
|
||||
"fonts/%s.ttf" % (data['name'].lower()),
|
||||
"fonts/%s.woof" % (data['name'].lower())
|
||||
"fonts/%s.woff" % (data['name'].lower())
|
||||
]
|
||||
}
|
||||
txt = json.dumps(d, indent=4, separators=(',', ': '))
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"build_hash": "fe84ca3ae75b9dbb9662bac01a7fc8a6",
|
||||
"build_hash": "b00533d2baf717d9970fa1b1ded6de04",
|
||||
"prefix": "ion-",
|
||||
"version": "1.3.2",
|
||||
"version": "1.4.1",
|
||||
"name": "Ionicons",
|
||||
"icons": [
|
||||
{
|
||||
@@ -12,6 +12,262 @@
|
||||
"code": "0xf100",
|
||||
"name": "alert-circled"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c7",
|
||||
"name": "android-add"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c6",
|
||||
"name": "android-add-contact"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c8",
|
||||
"name": "android-alarm"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c9",
|
||||
"name": "android-archive"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ca",
|
||||
"name": "android-arrow-back"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cb",
|
||||
"name": "android-arrow-down-left"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cc",
|
||||
"name": "android-arrow-down-right"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cd",
|
||||
"name": "android-arrow-up-left"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ce",
|
||||
"name": "android-arrow-up-right"
|
||||
},
|
||||
{
|
||||
"code": "0xf2cf",
|
||||
"name": "android-battery"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d0",
|
||||
"name": "android-book"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d1",
|
||||
"name": "android-calendar"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d2",
|
||||
"name": "android-call"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d3",
|
||||
"name": "android-camera"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d4",
|
||||
"name": "android-chat"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d5",
|
||||
"name": "android-checkmark"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d6",
|
||||
"name": "android-clock"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d7",
|
||||
"name": "android-close"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d8",
|
||||
"name": "android-contact"
|
||||
},
|
||||
{
|
||||
"code": "0xf2d9",
|
||||
"name": "android-contacts"
|
||||
},
|
||||
{
|
||||
"code": "0xf2da",
|
||||
"name": "android-data"
|
||||
},
|
||||
{
|
||||
"code": "0xf2db",
|
||||
"name": "android-developer"
|
||||
},
|
||||
{
|
||||
"code": "0xf2dc",
|
||||
"name": "android-display"
|
||||
},
|
||||
{
|
||||
"code": "0xf2dd",
|
||||
"name": "android-download"
|
||||
},
|
||||
{
|
||||
"code": "0xf2de",
|
||||
"name": "android-dropdown"
|
||||
},
|
||||
{
|
||||
"code": "0xf2df",
|
||||
"name": "android-earth"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e0",
|
||||
"name": "android-folder"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e1",
|
||||
"name": "android-forums"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e2",
|
||||
"name": "android-friends"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e3",
|
||||
"name": "android-hand"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e4",
|
||||
"name": "android-image"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e5",
|
||||
"name": "android-inbox"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e6",
|
||||
"name": "android-information"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e7",
|
||||
"name": "android-keypad"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e8",
|
||||
"name": "android-lightbulb"
|
||||
},
|
||||
{
|
||||
"code": "0xf2e9",
|
||||
"name": "android-locate"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ea",
|
||||
"name": "android-location"
|
||||
},
|
||||
{
|
||||
"code": "0xf2eb",
|
||||
"name": "android-mail"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ec",
|
||||
"name": "android-microphone"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ed",
|
||||
"name": "android-mixer"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ee",
|
||||
"name": "android-more"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ef",
|
||||
"name": "android-note"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f0",
|
||||
"name": "android-playstore"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f1",
|
||||
"name": "android-printer"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f2",
|
||||
"name": "android-promotion"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f3",
|
||||
"name": "android-reminder"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f4",
|
||||
"name": "android-remove"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f5",
|
||||
"name": "android-search"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f6",
|
||||
"name": "android-send"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f7",
|
||||
"name": "android-settings"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f8",
|
||||
"name": "android-share"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fa",
|
||||
"name": "android-social"
|
||||
},
|
||||
{
|
||||
"code": "0xf2f9",
|
||||
"name": "android-social-user"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fb",
|
||||
"name": "android-sort"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fc",
|
||||
"name": "android-star"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fd",
|
||||
"name": "android-stopwatch"
|
||||
},
|
||||
{
|
||||
"code": "0xf2fe",
|
||||
"name": "android-storage"
|
||||
},
|
||||
{
|
||||
"code": "0xf2ff",
|
||||
"name": "android-system-back"
|
||||
},
|
||||
{
|
||||
"code": "0xf300",
|
||||
"name": "android-system-home"
|
||||
},
|
||||
{
|
||||
"code": "0xf301",
|
||||
"name": "android-system-windows"
|
||||
},
|
||||
{
|
||||
"code": "0xf302",
|
||||
"name": "android-timer"
|
||||
},
|
||||
{
|
||||
"code": "0xf303",
|
||||
"name": "android-trash"
|
||||
},
|
||||
{
|
||||
"code": "0xf304",
|
||||
"name": "android-volume"
|
||||
},
|
||||
{
|
||||
"code": "0xf305",
|
||||
"name": "android-wifi"
|
||||
},
|
||||
{
|
||||
"code": "0xf102",
|
||||
"name": "archive"
|
||||
@@ -156,6 +412,10 @@
|
||||
"code": "0xf26c",
|
||||
"name": "briefcase"
|
||||
},
|
||||
{
|
||||
"code": "0xf2be",
|
||||
"name": "bug"
|
||||
},
|
||||
{
|
||||
"code": "0xf26d",
|
||||
"name": "calculator"
|
||||
@@ -300,6 +560,10 @@
|
||||
"code": "0xf276",
|
||||
"name": "earth"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bf",
|
||||
"name": "edit"
|
||||
},
|
||||
{
|
||||
"code": "0xf277",
|
||||
"name": "egg"
|
||||
@@ -316,6 +580,10 @@
|
||||
"code": "0xf133",
|
||||
"name": "eye"
|
||||
},
|
||||
{
|
||||
"code": "0xf306",
|
||||
"name": "eye-disabled"
|
||||
},
|
||||
{
|
||||
"code": "0xf278",
|
||||
"name": "female"
|
||||
@@ -352,6 +620,10 @@
|
||||
"code": "0xf27a",
|
||||
"name": "fork"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c0",
|
||||
"name": "fork-repo"
|
||||
},
|
||||
{
|
||||
"code": "0xf13a",
|
||||
"name": "forward"
|
||||
@@ -624,6 +896,18 @@
|
||||
"code": "0xf171",
|
||||
"name": "ios7-clock-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bc",
|
||||
"name": "ios7-close"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bd",
|
||||
"name": "ios7-close-empty"
|
||||
},
|
||||
{
|
||||
"code": "0xf2bb",
|
||||
"name": "ios7-close-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf178",
|
||||
"name": "ios7-cloud"
|
||||
@@ -652,6 +936,14 @@
|
||||
"code": "0xf17a",
|
||||
"name": "ios7-cloudy"
|
||||
},
|
||||
{
|
||||
"code": "0xf308",
|
||||
"name": "ios7-cloudy-night"
|
||||
},
|
||||
{
|
||||
"code": "0xf307",
|
||||
"name": "ios7-cloudy-night-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf179",
|
||||
"name": "ios7-cloudy-outline"
|
||||
@@ -1092,6 +1384,10 @@
|
||||
"code": "0xf1dd",
|
||||
"name": "ios7-skipforward-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf309",
|
||||
"name": "ios7-snowy"
|
||||
},
|
||||
{
|
||||
"code": "0xf290",
|
||||
"name": "ios7-speedometer"
|
||||
@@ -1344,6 +1640,10 @@
|
||||
"code": "0xf208",
|
||||
"name": "minus-round"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c1",
|
||||
"name": "model-s"
|
||||
},
|
||||
{
|
||||
"code": "0xf20a",
|
||||
"name": "monitor"
|
||||
@@ -1368,10 +1668,18 @@
|
||||
"code": "0xf2a3",
|
||||
"name": "navigate"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c2",
|
||||
"name": "no-smoking"
|
||||
},
|
||||
{
|
||||
"code": "0xf2a4",
|
||||
"name": "nuclear"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c3",
|
||||
"name": "paper-airplane"
|
||||
},
|
||||
{
|
||||
"code": "0xf20f",
|
||||
"name": "paperclip"
|
||||
@@ -1416,6 +1724,10 @@
|
||||
"code": "0xf215",
|
||||
"name": "play"
|
||||
},
|
||||
{
|
||||
"code": "0xf30a",
|
||||
"name": "playstation"
|
||||
},
|
||||
{
|
||||
"code": "0xf218",
|
||||
"name": "plus"
|
||||
@@ -1556,6 +1868,10 @@
|
||||
"code": "0xf230",
|
||||
"name": "social-facebook-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c4",
|
||||
"name": "social-freebsd-devil"
|
||||
},
|
||||
{
|
||||
"code": "0xf233",
|
||||
"name": "social-github"
|
||||
@@ -1628,6 +1944,10 @@
|
||||
"code": "0xf240",
|
||||
"name": "social-tumblr-outline"
|
||||
},
|
||||
{
|
||||
"code": "0xf2c5",
|
||||
"name": "social-tux"
|
||||
},
|
||||
{
|
||||
"code": "0xf243",
|
||||
"name": "social-twitter"
|
||||
@@ -1696,6 +2016,10 @@
|
||||
"code": "0xf2b5",
|
||||
"name": "stats-bars"
|
||||
},
|
||||
{
|
||||
"code": "0xf30b",
|
||||
"name": "steam"
|
||||
},
|
||||
{
|
||||
"code": "0xf24f",
|
||||
"name": "stop"
|
||||
@@ -1775,6 +2099,10 @@
|
||||
{
|
||||
"code": "0xf2ba",
|
||||
"name": "wrench"
|
||||
},
|
||||
{
|
||||
"code": "0xf30c",
|
||||
"name": "xbox"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
# Font generation script from FontCustom
|
||||
# https://github.com/FontCustom/fontcustom/
|
||||
# http://fontcustom.com/
|
||||
|
||||
import fontforge
|
||||
import os
|
||||
import md5
|
||||
@@ -11,8 +15,9 @@ INPUT_SVG_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'src')
|
||||
OUTPUT_FONT_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'fonts')
|
||||
MANIFEST_PATH = os.path.join(SCRIPT_PATH, '..', 'manifest.json')
|
||||
BUILD_DATA_PATH = os.path.join(SCRIPT_PATH, '..', 'build_data.json')
|
||||
AUTO_WIDTH = False
|
||||
AUTO_WIDTH = True
|
||||
KERNING = 15
|
||||
STANDARD_WIDTH_ICONS = ['refresh', 'ios7-reload', 'load-a', 'load-b', 'load-c', 'load-d', 'loop']
|
||||
|
||||
cp = 0xf100
|
||||
m = md5.new()
|
||||
@@ -34,7 +39,6 @@ build_data['icons'] = []
|
||||
|
||||
font_name = manifest_data['name']
|
||||
m.update(font_name + ';')
|
||||
m.update(manifest_data['version'] + ';')
|
||||
m.update(manifest_data['prefix'] + ';')
|
||||
|
||||
for dirname, dirnames, filenames in os.walk(INPUT_SVG_DIR):
|
||||
@@ -107,11 +111,12 @@ for dirname, dirnames, filenames in os.walk(INPUT_SVG_DIR):
|
||||
os.unlink(tmpsvgfile.name)
|
||||
|
||||
# set glyph size explicitly or automatically depending on autowidth
|
||||
if AUTO_WIDTH:
|
||||
if AUTO_WIDTH and name not in STANDARD_WIDTH_ICONS:
|
||||
glyph.left_side_bearing = glyph.right_side_bearing = 0
|
||||
glyph.round()
|
||||
else:
|
||||
# force a manual size when autowidth is disabled
|
||||
print " - Standard Width: %s" % (name)
|
||||
glyph.width = 512
|
||||
|
||||
# resize glyphs if autowidth is enabled
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"repo": "driftyco/ionicons",
|
||||
"development": {},
|
||||
"version": "1.3.2",
|
||||
"version": "1.4.1",
|
||||
"styles": [
|
||||
"css/ionicons.css"
|
||||
],
|
||||
@@ -13,7 +13,7 @@
|
||||
"fonts/ionicons.eot",
|
||||
"fonts/ionicons.svg",
|
||||
"fonts/ionicons.ttf",
|
||||
"fonts/ionicons.woof"
|
||||
"fonts/ionicons.woff"
|
||||
],
|
||||
"description": "The premium icon font for Ionic Framework."
|
||||
}
|
||||
|
Before Width: | Height: | Size: 387 KiB After Width: | Height: | Size: 236 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.2 KiB |