fontrobot 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,11 +1,9 @@
1
- FontRobot v0.1.6
1
+ FontRobot v0.1.7
2
2
  ==========
3
3
 
4
4
  **Generate custom icon webfonts from the comfort of the command line.**
5
5
 
6
- This is a fork of Fontcustom. I needed a quick fork to work out the kinks using this gem in a large-scale production Rails environment. I hope to merge my changes upstream to Fontcustom soon (Just FYI).
7
-
8
- FontRobot is primarily designed to add more control over how the @fontface declaration is created. See command-line options below for more details.
6
+ This is a fork of Fontcustom. I needed a quick fork to work out the kinks using this gem in a large-scale production Rails environment. FontRobot is primarily designed to add more control over how the @fontface declaration is created. See command-line options below for more details.
9
7
 
10
8
  Fontrobot allows you to:
11
9
 
@@ -14,12 +12,12 @@ Fontrobot allows you to:
14
12
  * Create an IE-compatible @font-face declaration
15
13
  * output css files with .scss extension for importing to Sass projects
16
14
 
17
- Including fonts as data-uris is nice because it avoids Firefox's same-origin policy and they load fast. For best performance, make sure your server gzips all served assets.
18
-
19
- [Original Fontcustom documentation](http://fontcustom.github.com/fontcustom/)
15
+ Including fonts as data-uris is nice because it avoids Firefox's same-origin policy (CORS) and they load fast. For best performance, make sure your server gzips all served assets.
20
16
 
21
17
  **NOTE:** After upgrading, rename or delete your current output directory (or all generated font/css files), as Fontrobot won't be able to clean the directory using the old css template.
22
18
 
19
+ [Original Fontcustom documentation](http://fontcustom.github.com/fontcustom/)
20
+
23
21
  Installation
24
22
  ------------
25
23
 
@@ -120,7 +120,7 @@ module Fontrobot
120
120
  if(inline.include?(type))
121
121
  fontpath = File.expand_path(File.join(@output, File.basename(@path)+"."+type))
122
122
  encoded_contents = Base64.encode64(File.read(fontpath)).gsub(/\n/, '') # encode and remove newlines, 1.8.7 compat
123
- src = "url(data:application/x-font-#{type};charset=utf-8;base64," + encoded_contents +") format('#{longtype[type]}')"
123
+ src = "url(data:application/font-#{type};charset=utf-8;base64," + encoded_contents +") format('#{longtype[type]}')"
124
124
  else
125
125
  src = fontface_strings[type.to_sym]
126
126
  end
@@ -7,7 +7,7 @@ Name:<%= @name %>
7
7
  <% if @inline_sources %>
8
8
  @font-face {
9
9
  font-family: "<%= @name %>";
10
- src: url("<%= @path %>.eot");
10
+ src: url("<%= @path %>.eot?") format('embedded-opentype');
11
11
  }
12
12
 
13
13
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Fontrobot
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontrobot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Barkow
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-26 00:00:00 Z
18
+ date: 2013-07-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json