webfontloader 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v1.0.20 (March 30, 2011)
2
+ * Changed CSS style for hidden span so it's not affected by inline or floated elements at the end of the body
3
+
1
4
  v1.0.19 (March 3, 2011)
2
5
  * Add a module for Monotype.
3
6
 
data/lib/webfontloader.rb CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  require 'webfontloader/modules'
4
4
 
5
5
  module WebFontLoader
6
- VERSION = '1.0.19'
6
+ VERSION = '1.0.20'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
@@ -125,9 +125,9 @@ webfont.FontWatchRunner.prototype.getDefaultFontSize_ = function(defaultFonts) {
125
125
  webfont.FontWatchRunner.prototype.createHiddenElementWithFont_ = function(
126
126
  defaultFonts, opt_withoutFontFamily) {
127
127
  var variationCss = this.fvd_.expand(this.fontDescription_);
128
- var styleString = "position:absolute;top:-999px;font-size:300px;" +
129
- "width:auto;height:auto;line-height:normal;margin:0;padding:0;" +
130
- "font-variant:normal;font-family:" + (opt_withoutFontFamily ? "" :
128
+ var styleString = "position:absolute;top:-999px;left:-999px;" +
129
+ "font-size:300px;width:auto;height:auto;line-height:normal;margin:0;" +
130
+ "padding:0;font-variant:normal;font-family:" + (opt_withoutFontFamily ? "" :
131
131
  this.nameHelper_.quote(this.fontFamily_) + ",") +
132
132
  defaultFonts + ";" + variationCss;
133
133
  var span = this.domHelper_.createElement('span', { 'style': styleString },
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'webfontloader'
16
- s.version = '1.0.19'
17
- s.date = '2011-03-03'
16
+ s.version = '1.0.20'
17
+ s.date = '2011-03-30'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webfontloader
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 19
10
- version: 1.0.19
9
+ - 20
10
+ version: 1.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Carver
@@ -16,10 +16,12 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-03 00:00:00 -08:00
19
+ date: 2011-03-30 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
+ name: rack
24
+ prerelease: false
23
25
  requirement: &id001 !ruby/object:Gem::Requirement
24
26
  none: false
25
27
  requirements:
@@ -32,10 +34,10 @@ dependencies:
32
34
  - 1
33
35
  version: 1.2.1
34
36
  type: :development
35
- name: rack
36
- prerelease: false
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
+ name: sinatra
40
+ prerelease: false
39
41
  requirement: &id002 !ruby/object:Gem::Requirement
40
42
  none: false
41
43
  requirements:
@@ -47,10 +49,10 @@ dependencies:
47
49
  - 0
48
50
  version: "1.0"
49
51
  type: :development
50
- name: sinatra
51
- prerelease: false
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
+ name: vegas
55
+ prerelease: false
54
56
  requirement: &id003 !ruby/object:Gem::Requirement
55
57
  none: false
56
58
  requirements:
@@ -63,8 +65,6 @@ dependencies:
63
65
  - 6
64
66
  version: 0.1.6
65
67
  type: :development
66
- name: vegas
67
- prerelease: false
68
68
  version_requirements: *id003
69
69
  description: |
70
70
  WebFont Loader gives you added control when using linked fonts via