Skip to content

Commit

Permalink
do not auto-width animated icons
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Nov 15, 2013
1 parent aa72d6f commit 560be6a
Show file tree
Hide file tree
Showing 13 changed files with 281 additions and 254 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test",
"tests"
],
"version": "1.3.4",
"version": "1.3.5",
"name": "Ionicons",
"license": "MIT",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions builder/build_data.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build_hash": "283bffe80f9777d67627afcd6d170661",
"build_hash": "6720df1d45ed6c6639c66a398bfbea55",
"prefix": "ion-",
"version": "1.3.4",
"version": "1.3.5",
"name": "Ionicons",
"icons": [
{
Expand Down
4 changes: 2 additions & 2 deletions builder/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build_hash": "6720df1d45ed6c6639c66a398bfbea55",
"build_hash": "12febfa8c61b7232a63eed40ea673d0d",
"prefix": "ion-",
"version": "1.3.4",
"version": "1.3.5",
"name": "Ionicons",
"icons": [
{
Expand Down
4 changes: 3 additions & 1 deletion builder/scripts/generate_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
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()
Expand Down Expand Up @@ -107,11 +108,12 @@
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
Expand Down
4 changes: 2 additions & 2 deletions cheatsheet.html
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"repo": "driftyco/ionicons",
"development": {},
"version": "1.3.4",
"version": "1.3.5",
"styles": [
"css/ionicons.css"
],
Expand Down
8 changes: 4 additions & 4 deletions css/ionicons.css
Original file line number Diff line number Diff line change
@@ -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; }

Expand Down
6 changes: 3 additions & 3 deletions css/ionicons.min.css

Large diffs are not rendered by default.

Binary file modified fonts/ionicons.eot
Binary file not shown.
499 changes: 262 additions & 237 deletions fonts/ionicons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fonts/ionicons.ttf
Binary file not shown.
Binary file modified fonts/ionicons.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion scss/_ionicons-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 560be6a

Please sign in to comment.