fontcustom 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c735f457e4f3c87c9fe6a4bfb96a838ceb41e5ed
4
- data.tar.gz: 9cb39edaaed9d22c46cc5293de50659c5d259544
3
+ metadata.gz: a6e8bb4958c86331ee3892c42e9a10b10cd3df0d
4
+ data.tar.gz: de87bb5735a42ebd41672e739f44c00bdc5452f7
5
5
  SHA512:
6
- metadata.gz: 4a01dd169d606ae246fe0b31cca4c511f9b2d13364f9cb22253912c28fd0ca14c4e8de3623016c3cc67a545e2f51191e9cd53e0278ea445cfe93b63e20e428b0
7
- data.tar.gz: 315d840c2ffb6d314a9e0db5df8f852c6cc47ea5d22e627974769504523b86524b8cbde3be92f2420027058f0f25578870813a2b8171e727c5ca0c860e6ce243
6
+ metadata.gz: f7a94f1314cf98b613bf5bca317ba166c4e2a148f0ae511cc033db551d9691fb04003a7c3ac8aa1c12d5a8bc0049bd6891f050738e0fe2c5968e73127a8ab72c
7
+ data.tar.gz: 2fba689d4f3f007385d3419dff4652254ad0cddc9eaf97129baeba392188b3fcca58ab598efcdc7cd5215ec584b3b79583198cb7e3328de77393e81f2597ce15
@@ -1,3 +1,9 @@
1
+ ## 1.3.3 (2/20/2014)
2
+
3
+ * Removes ttfautohint ([#160c](https://github.com/FontCustom/fontcustom/pull/160#issuecomment-34593191))
4
+ * Fixes rails-scss template helper ([#185](https://github.com/FontCustom/fontcustom/issues/185))
5
+ * Adds `text-rendering: optimizeLegibility` ([#181](https://github.com/FontCustom/fontcustom/pull/181))
6
+
1
7
  ## 1.3.2 (1/31/2014)
2
8
 
3
9
  * Fixes `preprocessor_path` for Rails asset pipeline / Sprockets ([#162](https://github.com/FontCustom/fontcustom/pull/162), [#167](https://github.com/FontCustom/fontcustom/pull/167))
data/README.md CHANGED
@@ -18,11 +18,11 @@ Requires **Ruby 1.9.2+**, **FontForge** with Python scripting.
18
18
 
19
19
  ```sh
20
20
  # On Mac
21
- brew install fontforge eot-utils ttfautohint
21
+ brew install fontforge eot-utils
22
22
  gem install fontcustom
23
23
 
24
24
  # On Linux
25
- sudo apt-get install fontforge ttfautohint
25
+ sudo apt-get install fontforge
26
26
  wget http://people.mozilla.com/~jkew/woff/woff-code-latest.zip
27
27
  unzip woff-code-latest.zip -d sfnt2woff && cd sfnt2woff && make && sudo mv sfnt2woff /usr/local/bin/
28
28
  gem install fontcustom
@@ -139,7 +139,7 @@ module Fontcustom
139
139
  @media screen and (-webkit-min-device-pixel-ratio:0) {
140
140
  @font-face {
141
141
  font-family: "#{font_name}";
142
- src: url("#{path}.svg##{font_name}") format("svg");
142
+ src: #{url}("#{path}.svg##{font_name}") format("svg");
143
143
  }
144
144
  }|
145
145
  end
@@ -151,6 +151,21 @@ module Fontcustom
151
151
  output.join ",\n"
152
152
  end
153
153
 
154
+ def glyph_properties
155
+ %Q| display: inline-block;
156
+ font-family: "#{font_name}";
157
+ font-style: normal;
158
+ font-weight: normal;
159
+ font-variant: normal;
160
+ line-height: 1;
161
+ text-decoration: inherit;
162
+ text-rendering: optimizeLegibility;
163
+ text-transform: none;
164
+ -moz-osx-font-smoothing: grayscale;
165
+ -webkit-font-smoothing: antialiased;
166
+ font-smoothing: antialiased;|
167
+ end
168
+
154
169
  def glyphs
155
170
  output = @glyphs.map do |name, value|
156
171
  %Q|#{@options[:css_selector].sub('{{glyph}}', name.to_s)}:before { content: "\\#{value[:codepoint].to_s(16)}"; }|
@@ -93,9 +93,6 @@ try:
93
93
  manifest['fonts'].append(fontfile + '.ttf')
94
94
  manifest['fonts'].append(fontfile + '.svg')
95
95
 
96
- # Hint the TTF file
97
- subprocess.call('ttfautohint -s -f -n -W ' + fontfile + '.ttf ' + fontfile + '-hinted.ttf > /dev/null 2>&1 && mv ' + fontfile + '-hinted.ttf ' + fontfile + '.ttf', shell=True)
98
-
99
96
  # Fix SVG header for webkit
100
97
  # from: https://github.com/fontello/font-builder/blob/master/bin/fontconvert.py
101
98
  svgfile = open(fontfile + '.svg', 'r+')
@@ -8,16 +8,7 @@
8
8
 
9
9
  [data-icon]:before,
10
10
  <%= glyph_selectors %> {
11
- display: inline-block;
12
- font-family: "<%= font_name %>";
13
- font-style: normal;
14
- font-weight: normal;
15
- font-variant: normal;
16
- line-height: 1;
17
- text-decoration: inherit;
18
- text-transform: none;
19
- -moz-osx-font-smoothing: grayscale;
20
- -webkit-font-smoothing: antialiased;
11
+ <%= glyph_properties %>
21
12
  }
22
13
 
23
14
  <%= glyphs %>
@@ -8,16 +8,7 @@
8
8
 
9
9
  [data-icon]:before,
10
10
  <%= glyph_selectors %> {
11
- display: inline-block;
12
- font-family: "<%= font_name %>";
13
- font-style: normal;
14
- font-weight: normal;
15
- font-variant: normal;
16
- line-height: 1;
17
- text-decoration: inherit;
18
- text-transform: none;
19
- -moz-osx-font-smoothing: grayscale;
20
- -webkit-font-smoothing: antialiased;
11
+ <%= glyph_properties %>
21
12
  }
22
13
 
23
14
  <%= glyphs %>
@@ -127,16 +127,7 @@
127
127
 
128
128
  [data-icon]:before,
129
129
  <%= glyph_selectors %> {
130
- display: inline-block;
131
- font-family: "<%= font_name %>";
132
- font-style: normal;
133
- font-weight: normal;
134
- font-variant: normal;
135
- line-height: 1;
136
- text-decoration: inherit;
137
- text-transform: none;
138
- -moz-osx-font-smoothing: grayscale;
139
- -webkit-font-smoothing: antialiased;
130
+ <%= glyph_properties %>
140
131
  }
141
132
 
142
133
  <%= glyphs %>
@@ -8,16 +8,7 @@
8
8
 
9
9
  [data-icon]:before,
10
10
  <%= glyph_selectors %> {
11
- display: inline-block;
12
- font-family: "<%= font_name %>";
13
- font-style: normal;
14
- font-weight: normal;
15
- font-variant: normal;
16
- line-height: 1;
17
- text-decoration: inherit;
18
- text-transform: none;
19
- -moz-osx-font-smoothing: grayscale;
20
- -webkit-font-smoothing: antialiased;
11
+ <%= glyph_properties %>
21
12
  }
22
13
 
23
14
  <%= glyphs %>
@@ -1,3 +1,3 @@
1
1
  module Fontcustom
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontcustom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kai Zau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-31 00:00:00.000000000 Z
12
+ date: 2014-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json