webfontloader 1.5.14 → 1.5.15

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: 7b78dbe2da7ee76be8180028a6e8bb1e8f947fc7
4
- data.tar.gz: 646d9a10af417944a2ff25c896908ad844cf90e6
3
+ metadata.gz: 862467b0fd860a6dfcf03a8dbce5f8efe4be586a
4
+ data.tar.gz: 78c6b4070c011c9dfb8333010bd98fc66ebb3d14
5
5
  SHA512:
6
- metadata.gz: 62db432cdd91ef9c39b67bf0a861de6cb9112cb3bd8e0a471f64a0ba2255ee12b0fc6e371f4dc41dda8600ee2c2476b80d53236c9547ef34eab6d28324120dc9
7
- data.tar.gz: 01fb5925737f019f3761343a6fac9f556144e0ad4f37e2901a843430ce7c9cc8027007cf15a86cf21e043e57586492b5a8e2d146441a8d5d0de5ffcd7dc51262
6
+ metadata.gz: ae5e4f11c4ec120f57f8557cb48007540f099e550d26071a20ceb9c83d219feee4e5408006837b20e733862657806d2e2130dc2b21b5df7997ee698da4cfba7e
7
+ data.tar.gz: d78b887b722b2b8776debb4349310c3582fc9aeb26496ae00dca2935c1c93dfe7bcdef94e3a8ca3760d2f802780a70144e76a40b59cdf532bf98fb6d4c2014ad
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v1.5.15 (March 25, 2015)
2
+ * Increase offset position for ruler so scrollbars are less likely to be triggered by large test strings
3
+
1
4
  v1.5.14 (January 23, 2015)
2
5
  * Refactor EventDispatcher
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.5.14'
6
+ VERSION = '1.5.15'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
data/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "webfontloader",
3
+ "version": "1.5.15",
4
+ "description": "Web Font Loader gives you added control when using linked fonts via @font-face.",
5
+ "main": "webfontloader.js",
6
+ "scripts": {
7
+ "test": "./node_modules/.bin/phantomjs tools/jasmine-phantomjs/jasmine-phantomjs.js spec/index.html"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git://github.com/typekit/webfontloader.git"
12
+ },
13
+ "keywords": [
14
+ "web",
15
+ "fonts",
16
+ "webfonts",
17
+ "font",
18
+ "loader",
19
+ "@font-face"
20
+ ],
21
+ "contributors": [
22
+ "Ryan Carver <ryan@typekit.com>",
23
+ "Jeremie Lenfant-engelmann <jeremiele@google.com>",
24
+ "Sean McBride <sean@typekit.com>",
25
+ "Bram Stein <bram@typekit.com>"
26
+ ],
27
+ "license": "Apache-2.0",
28
+ "bugs": {
29
+ "url": "https://github.com/typekit/webfontloader/issues"
30
+ },
31
+ "homepage": "https://github.com/typekit/webfontloader",
32
+ "devDependencies": {
33
+ "phantomjs2-ext": "0.0.4"
34
+ }
35
+ }
@@ -38,7 +38,7 @@ goog.scope(function () {
38
38
  * @return {string}
39
39
  */
40
40
  FontRuler.prototype.computeStyleString_ = function(font) {
41
- return "display:block;position:absolute;top:-999px;left:-999px;" +
41
+ return "display:block;position:absolute;top:-9999px;left:-9999px;" +
42
42
  "font-size:300px;width:auto;height:auto;line-height:normal;margin:0;" +
43
43
  "padding:0;font-variant:normal;white-space:nowrap;font-family:" +
44
44
  font.getCssName() + ";" + font.getCssVariation();
@@ -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.5.14'
17
- s.date = '2015-01-23'
16
+ s.version = '1.5.15'
17
+ s.date = '2015-03-25'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
@@ -69,7 +69,6 @@ DESC
69
69
  ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
70
70
  # = MANIFEST =
71
71
  s.files = %w[
72
- AUTHORS
73
72
  CHANGELOG
74
73
  CONTRIBUTING.md
75
74
  Gemfile
@@ -109,6 +108,7 @@ DESC
109
108
  lib/webfontloader/demo/public/typekit.html
110
109
  lib/webfontloader/demo/server.rb
111
110
  lib/webfontloader/modules.rb
111
+ package.json
112
112
  spec/core/cssclassname_spec.js
113
113
  spec/core/domhelper_spec.js
114
114
  spec/core/eventdispatcher_spec.js
data/webfontloader.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Web Font Loader v1.5.14 - (c) Adobe Systems, Google. License: Apache 2.0 */
1
+ /* Web Font Loader v1.5.15 - (c) Adobe Systems, Google. License: Apache 2.0 */
2
2
  ;(function(window,document,undefined){function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function k(a,b,c){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return k.apply(null,arguments)}var n=Date.now||function(){return+new Date};function q(a,b){this.J=a;this.t=b||a;this.C=this.t.document}q.prototype.createElement=function(a,b,c){a=this.C.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.style.cssText=b[d]:a.setAttribute(d,b[d]));c&&a.appendChild(this.C.createTextNode(c));return a};function r(a,b,c){a=a.C.getElementsByTagName(b)[0];a||(a=document.documentElement);a&&a.lastChild&&a.insertBefore(c,a.lastChild)}function ca(a,b){function c(){a.C.body?b():setTimeout(c,0)}c()}
3
3
  function s(a,b,c){b=b||[];c=c||[];for(var d=a.className.split(/\s+/),e=0;e<b.length;e+=1){for(var f=!1,g=0;g<d.length;g+=1)if(b[e]===d[g]){f=!0;break}f||d.push(b[e])}b=[];for(e=0;e<d.length;e+=1){f=!1;for(g=0;g<c.length;g+=1)if(d[e]===c[g]){f=!0;break}f||b.push(d[e])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function t(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}
4
4
  function u(a){if("string"===typeof a.ma)return a.ma;var b=a.t.location.protocol;"about:"==b&&(b=a.J.location.protocol);return"https:"==b?"https:":"http:"}function v(a,b){var c=a.createElement("link",{rel:"stylesheet",href:b}),d=!1;c.onload=function(){d||(d=!0)};c.onerror=function(){d||(d=!0)};r(a,"head",c)}
@@ -12,7 +12,7 @@ function D(a){var b=E(a.a,/(OS X|Windows NT|Android) ([^;)]+)/,2);if(b||(b=E(a.a
12
12
  function F(a){var b=C(a),c=z(D(a)),d=z(E(a.a,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1)),e="Unknown",f=new y,f="Unknown",g=!1;/OPR\/[\d.]+/.test(a.a)?e="Opera":-1!=a.a.indexOf("Chrome")||-1!=a.a.indexOf("CrMo")||-1!=a.a.indexOf("CriOS")?e="Chrome":/Silk\/\d/.test(a.a)?e="Silk":"BlackBerry"==b||"Android"==b?e="BuiltinBrowser":-1!=a.a.indexOf("PhantomJS")?e="PhantomJS":-1!=a.a.indexOf("Safari")?e="Safari":-1!=a.a.indexOf("AdobeAIR")?e="AdobeAIR":-1!=a.a.indexOf("PlayStation")&&(e="BuiltinBrowser");"BuiltinBrowser"==
13
13
  e?f="Unknown":"Silk"==e?f=E(a.a,/Silk\/([\d\._]+)/,1):"Chrome"==e?f=E(a.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=a.a.indexOf("Version/")?f=E(a.a,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==e?f=E(a.a,/AdobeAIR\/([\d\.]+)/,1):"Opera"==e?f=E(a.a,/OPR\/([\d.]+)/,1):"PhantomJS"==e&&(f=E(a.a,/PhantomJS\/([\d.]+)/,1));f=z(f);g="AdobeAIR"==e?2<f.c||2==f.c&&5<=f.g:"BlackBerry"==b?10<=c.c:"Android"==b?2<c.c||2==c.c&&1<c.g:526<=d.c||525<=d.c&&13<=d.g;return new A(e,0,0,0,0,0,0,new x(g,536>d.c||536==d.c&&11>d.g))}
14
14
  function E(a,b,c){return(a=a.match(b))&&a[c]?a[c]:""};function G(a){this.la=a||"-"}G.prototype.e=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.la)};function H(a,b){this.M=a;this.Y=4;this.N="n";var c=(b||"n4").match(/^([nio])([1-9])$/i);c&&(this.N=c[1],this.Y=parseInt(c[2],10))}H.prototype.getName=function(){return this.M};function I(a){return a.N+a.Y}function ga(a){var b=4,c="n",d=null;a&&((d=a.match(/(normal|oblique|italic)/i))&&d[1]&&(c=d[1].substr(0,1).toLowerCase()),(d=a.match(/([1-9]00|normal|bold)/i))&&d[1]&&(/bold/i.test(d[1])?b=7:/[1-9]00/.test(d[1])&&(b=parseInt(d[1].substr(0,1),10))));return c+b};function ha(a,b){this.d=a;this.p=a.t.document.documentElement;this.P=b;this.j="wf";this.h=new G("-");this.ga=!1!==b.events;this.B=!1!==b.classes}function J(a){if(a.B){var b=t(a.p,a.h.e(a.j,"active")),c=[],d=[a.h.e(a.j,"loading")];b||c.push(a.h.e(a.j,"inactive"));s(a.p,c,d)}K(a,"inactive")}function K(a,b,c){if(a.ga&&a.P[b])if(c)a.P[b](c.getName(),I(c));else a.P[b]()};function ia(){this.w={}};function L(a,b){this.d=a;this.G=b;this.m=this.d.createElement("span",{"aria-hidden":"true"},this.G)}function M(a){r(a.d,"body",a.m)}
15
- function N(a){var b;b=[];for(var c=a.M.split(/,\s*/),d=0;d<c.length;d++){var e=c[d].replace(/['"]/g,"");-1==e.indexOf(" ")?b.push(e):b.push("'"+e+"'")}b=b.join(",");c="normal";"o"===a.N?c="oblique":"i"===a.N&&(c="italic");return"display:block;position:absolute;top:-999px;left:-999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b+";"+("font-style:"+c+";font-weight:"+(a.Y+"00")+";")}
15
+ function N(a){var b;b=[];for(var c=a.M.split(/,\s*/),d=0;d<c.length;d++){var e=c[d].replace(/['"]/g,"");-1==e.indexOf(" ")?b.push(e):b.push("'"+e+"'")}b=b.join(",");c="normal";"o"===a.N?c="oblique":"i"===a.N&&(c="italic");return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b+";"+("font-style:"+c+";font-weight:"+(a.Y+"00")+";")}
16
16
  L.prototype.remove=function(){var a=this.m;a.parentNode&&a.parentNode.removeChild(a)};function O(a,b,c,d,e,f,g,h){this.Z=a;this.ja=b;this.d=c;this.s=d;this.G=h||"BESbswy";this.k=e;this.I={};this.W=f||3E3;this.ba=g||null;this.F=this.D=null;a=new L(this.d,this.G);M(a);for(var m in P)P.hasOwnProperty(m)&&(b=new H(P[m],I(this.s)),b=N(b),a.m.style.cssText=b,this.I[P[m]]=a.m.offsetWidth);a.remove()}var P={ra:"serif",qa:"sans-serif",pa:"monospace"};
17
17
  O.prototype.start=function(){this.D=new L(this.d,this.G);M(this.D);this.F=new L(this.d,this.G);M(this.F);this.na=n();var a=new H(this.s.getName()+",serif",I(this.s)),a=N(a);this.D.m.style.cssText=a;a=new H(this.s.getName()+",sans-serif",I(this.s));a=N(a);this.F.m.style.cssText=a;Q(this)};function R(a,b,c){for(var d in P)if(P.hasOwnProperty(d)&&b===a.I[P[d]]&&c===a.I[P[d]])return!0;return!1}
18
18
  function Q(a){var b=a.D.m.offsetWidth,c=a.F.m.offsetWidth;b===a.I.serif&&c===a.I["sans-serif"]||a.k.fa&&R(a,b,c)?n()-a.na>=a.W?a.k.fa&&R(a,b,c)&&(null===a.ba||a.ba.hasOwnProperty(a.s.getName()))?S(a,a.Z):S(a,a.ja):ja(a):S(a,a.Z)}function ja(a){setTimeout(k(function(){Q(this)},a),25)}function S(a,b){a.D.remove();a.F.remove();b(a.s)};function T(a,b,c,d){this.d=b;this.u=c;this.R=0;this.da=this.aa=!1;this.W=d;this.k=a.k}function ka(a,b,c,d,e){c=c||{};if(0===b.length&&e)J(a.u);else for(a.R+=b.length,e&&(a.aa=e),e=0;e<b.length;e++){var f=b[e],g=c[f.getName()],h=a.u,m=f;h.B&&s(h.p,[h.h.e(h.j,m.getName(),I(m).toString(),"loading")]);K(h,"fontloading",m);h=null;h=new O(k(a.ha,a),k(a.ia,a),a.d,f,a.k,a.W,d,g);h.start()}}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webfontloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.14
4
+ version: 1.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Carver
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-23 00:00:00.000000000 Z
12
+ date: 2015-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -78,7 +78,6 @@ extensions: []
78
78
  extra_rdoc_files:
79
79
  - README.md
80
80
  files:
81
- - AUTHORS
82
81
  - CHANGELOG
83
82
  - CONTRIBUTING.md
84
83
  - Gemfile
@@ -118,6 +117,7 @@ files:
118
117
  - lib/webfontloader/demo/public/typekit.html
119
118
  - lib/webfontloader/demo/server.rb
120
119
  - lib/webfontloader/modules.rb
120
+ - package.json
121
121
  - spec/core/cssclassname_spec.js
122
122
  - spec/core/domhelper_spec.js
123
123
  - spec/core/eventdispatcher_spec.js
data/AUTHORS DELETED
@@ -1,4 +0,0 @@
1
- * Ryan Carver (ryan@typekit.com)
2
- * Jeremie Lenfant-engelmann (jeremiele@google.com)
3
- * Sean McBride (sean@typekit.com)
4
- * Bram Stein (bram@typekit.com)