do not auto-width animated icons

This commit is contained in:
Adam Bradley
2013-11-15 13:19:13 -06:00
parent aa72d6fec2
commit 560be6a5df
13 changed files with 281 additions and 254 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
"test",
"tests"
],
"version": "1.3.4",
"version": "1.3.5",
"name": "Ionicons",
"license": "MIT",
"authors": [
+2 -2
View File
@@ -1,7 +1,7 @@
{
"build_hash": "283bffe80f9777d67627afcd6d170661",
"build_hash": "6720df1d45ed6c6639c66a398bfbea55",
"prefix": "ion-",
"version": "1.3.4",
"version": "1.3.5",
"name": "Ionicons",
"icons": [
{
+2 -2
View File
@@ -1,7 +1,7 @@
{
"build_hash": "6720df1d45ed6c6639c66a398bfbea55",
"build_hash": "12febfa8c61b7232a63eed40ea673d0d",
"prefix": "ion-",
"version": "1.3.4",
"version": "1.3.5",
"name": "Ionicons",
"icons": [
{
+3 -1
View File
@@ -13,6 +13,7 @@ MANIFEST_PATH = os.path.join(SCRIPT_PATH, '..', 'manifest.json')
BUILD_DATA_PATH = os.path.join(SCRIPT_PATH, '..', 'build_data.json')
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()
@@ -107,11 +108,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
+2 -2
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Ionicons v1.3.4 Cheatsheet</title>
<title>Ionicons v1.3.5 Cheatsheet</title>
<style>
* {
-moz-box-sizing: border-box;
@@ -142,7 +142,7 @@
<body>
<div class="container">
<header>
<h1>Ionicons v1.3.4 Cheatsheet, 446 icons:</h1>
<h1>Ionicons v1.3.5 Cheatsheet, 446 icons:</h1>
<p><a href="http://ionicons.com/">Ionicons Homepage</a></p>
</header>
<div class="content">
+1 -1
View File
@@ -1,7 +1,7 @@
{
"repo": "driftyco/ionicons",
"development": {},
"version": "1.3.4",
"version": "1.3.5",
"styles": [
"css/ionicons.css"
],
+4 -4
View File
@@ -1,13 +1,13 @@
/*!
Ionicons, v1.3.4
/*
Ionicons, v1.3.5
Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
https://twitter.com/helloimben https://twitter.com/ionicframework
MIT License: https://github.com/driftyco/ionicons
*/
@font-face {
font-family: "Ionicons";
src: url("../fonts/ionicons.eot?v=1.3.4");
src: url("../fonts/ionicons.eot?v=1.3.4#iefix") format("embedded-opentype"), url("../fonts/ionicons.ttf?v=1.3.4") format("truetype"), url("../fonts/ionicons.woff?v=1.3.4") format("woff"), url("../fonts/ionicons.svg?v=1.3.4#Ionicons") format("svg");
src: url("../fonts/ionicons.eot?v=1.3.5");
src: url("../fonts/ionicons.eot?v=1.3.5#iefix") format("embedded-opentype"), url("../fonts/ionicons.ttf?v=1.3.5") format("truetype"), url("../fonts/ionicons.woff?v=1.3.5") format("woff"), url("../fonts/ionicons.svg?v=1.3.5#Ionicons") format("svg");
font-weight: normal;
font-style: normal; }
+3 -3
View File
File diff suppressed because one or more lines are too long
Binary file not shown.
+262 -237
View File
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
$ionicons-font-path: "../fonts" !default;
$ionicons-font-family: "Ionicons" !default;
$ionicons-version: "1.3.4" !default;
$ionicons-version: "1.3.5" !default;
$ionicons-prefix: ion- !default;
$ionicon-var-alert: "\f101";