fontcustom 1.3.5.pre → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +0 -1
- data/lib/fontcustom/generator/template.rb +2 -2
- data/lib/fontcustom/scripts/generate.py +3 -4
- data/lib/fontcustom/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb98673956f8d1fb1104898456348f491017f60
|
4
|
+
data.tar.gz: 68bd540c06bac96d0c52cc88a342052598137113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4dac02e94a65f6c1ff6b912245e8028b637b8f21541f9622377a71638443c802836828f54c90c2638d72e9063673eb9f04e40a5f3c3a7ccd8bb55f553579e15
|
7
|
+
data.tar.gz: da2ed0b92e8cb795ae2cd7d25bd72d865e6f23a02d591e223b5762bfd64ed35c0300c73571c5cbcf88faabb0566d08a99bed1610142c14b4b76c25fe4472b28c
|
data/CONTRIBUTING.md
CHANGED
@@ -136,7 +136,7 @@ module Fontcustom
|
|
136
136
|
font-family: "#{font_name}";
|
137
137
|
src: #{url}("#{path}.eot");
|
138
138
|
src: #{url}("#{path}.eot?#iefix") format("embedded-opentype"),
|
139
|
-
|
139
|
+
url("#{woff_data_uri}"),
|
140
140
|
#{url}("#{path}.woff") format("woff"),
|
141
141
|
#{url}("#{path}.ttf") format("truetype"),
|
142
142
|
#{url}("#{path}.svg##{font_name}") format("svg");
|
@@ -158,7 +158,7 @@ module Fontcustom
|
|
158
158
|
|
159
159
|
def woff_base64
|
160
160
|
woff_path = File.join(@options[:output][:fonts], "#{@font_path_alt}.woff")
|
161
|
-
Base64.encode64(File.
|
161
|
+
Base64.encode64(File.binread(File.join(woff_path))).gsub("\n", "")
|
162
162
|
end
|
163
163
|
|
164
164
|
def glyph_selectors
|
@@ -47,14 +47,13 @@ if options['autowidth']:
|
|
47
47
|
#
|
48
48
|
|
49
49
|
def removeSwitchFromSvg( file ):
|
50
|
-
svgfile = open(file, 'r
|
51
|
-
tmpsvgfile = tempfile.NamedTemporaryFile(suffix=".svg", delete=False)
|
50
|
+
svgfile = open(file, 'r')
|
52
51
|
svgtext = svgfile.read()
|
53
|
-
svgfile.
|
52
|
+
svgfile.close()
|
53
|
+
tmpsvgfile = tempfile.NamedTemporaryFile(suffix=".svg", delete=False)
|
54
54
|
svgtext = svgtext.replace('<switch>', '')
|
55
55
|
svgtext = svgtext.replace('</switch>', '')
|
56
56
|
tmpsvgfile.file.write(svgtext)
|
57
|
-
svgfile.close()
|
58
57
|
tmpsvgfile.file.close()
|
59
58
|
|
60
59
|
return tmpsvgfile.name
|
data/lib/fontcustom/version.rb
CHANGED
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.5
|
4
|
+
version: 1.3.5
|
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-
|
12
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -191,9 +191,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- - '
|
194
|
+
- - '>='
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
196
|
+
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
199
|
rubygems_version: 2.1.9
|