From 89892f7f0ef63792971d7017c9bc9f18b2fc9ede Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Tue, 21 Jan 2014 00:04:28 +0530 Subject: [PATCH] For IE, do not use salt for tofu detection Adding salt won't work for IE since it uses a tofu with small width for unassigned code points. From tests, algorithm without salt should be enough for IE. Change-Id: If39e6c49d272fa67f60c19f1af64f1fb71856bcd --- resources/js/ext.uls.webfonts.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/js/ext.uls.webfonts.js b/resources/js/ext.uls.webfonts.js index 30a41ec0..d2a14f49 100644 --- a/resources/js/ext.uls.webfonts.js +++ b/resources/js/ext.uls.webfonts.js @@ -73,7 +73,10 @@ length = Math.min( 4, text.length ), detected = false; - text = tofuSalt + text; + if ( $.client.test( { msie: false } ) ) { + // IE shows a different tofu for unassigned code points! + text = tofuSalt + text; + } $fixture = $( '' ) .css( { fontSize: '72px',