Skip to content
Browse files

Scaled back the number of fall back fonts for webkit.

  • Loading branch information...
1 parent 28cff37 commit 48ce442136303bdbcf50d3cd4d4368b751e46f2b @jeremiele jeremiele committed Jul 18, 2012
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);

0 comments on commit 48ce442

Please sign in to comment.
Something went wrong with that request. Please try again.