Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #58 from typekit/fallback_fonts_scaleback

Fallback fonts scaleback
  • Loading branch information...
commit 9aac7e0d2e4bb18929dc7e0a46b019c60c776691 2 parents f17410f + 48ce442
Sean McBride authored
View
6 src-test/google/lastresortwebkitfontwatchrunnertest.js
@@ -73,7 +73,7 @@ LastResortWebKitFontWatchRunnerTest.prototype.setUp = function() {
LastResortWebKitFontWatchRunnerTest.prototype.testLastResortFontIgnored =
function() {
var originalSizeCount = 2;
- var lastResortFontsCount = 11;
+ var lastResortFontsCount = 5;
var firstSize = 2;
var secondSize = 2;
var thirdSize = 2;
@@ -119,7 +119,7 @@ LastResortWebKitFontWatchRunnerTest.prototype.testLastResortFontActiveWhenSizeMa
= function() {
this.timesToGetTimeBeforeTimeout_ = 3;
var originalSizeCount = 2;
- var lastResortFontsCount = 11;
+ var lastResortFontsCount = 5;
var firstSize = 2;
this.fontFamily_ = "Arimo";
@@ -157,7 +157,7 @@ LastResortWebKitFontWatchRunnerTest.prototype.testLastResortFontInactiveWhenSize
= function() {
this.timesToGetTimeBeforeTimeout_ = 3;
var originalSizeCount = 2;
- var lastResortFontsCount = 11;
+ var lastResortFontsCount = 5;
var firstSize = 2;
var secondSize = 2;
var thirdSize = 2;
View
5 src/google/lastresortwebkitfontwatchrunner.js
@@ -38,10 +38,7 @@ webfont.LastResortWebKitFontWatchRunner.METRICS_COMPATIBLE_FONTS = {
*/
webfont.LastResortWebKitFontWatchRunner.prototype
.setUpWebKitLastResortFontSizes_ = function() {
- var lastResortFonts = ["Times New Roman",
- "Lucida Sans Unicode", "Courier New", "Tahoma", "Arial",
- "Microsoft Sans Serif", "Times", "Lucida Console", "Sans", "Serif",
- "Monospace"];
+ var lastResortFonts = ['Times New Roman', 'Arial', 'Times', 'Sans', 'Serif'];
var lastResortFontSizes = lastResortFonts.length;
var webKitLastResortFontSizes = {};
var element = this.createHiddenElementWithFont_(lastResortFonts[0], true);
Please sign in to comment.
Something went wrong with that request. Please try again.