http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100683
Revision: 100683
Author: santhosh
Date: 2011-10-25 08:29:28 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
Remove unused, unimplemented scale method.
Modified Paths:
--------------
trunk/extensions/WebFonts/js/webfonts.js
Modified: trunk/extensions/WebFonts/js/webfonts.js
===================================================================
--- trunk/extensions/WebFonts/js/webfonts.js 2011-10-25 08:06:57 UTC (rev
100682)
+++ trunk/extensions/WebFonts/js/webfonts.js 2011-10-25 08:29:28 UTC (rev
100683)
@@ -43,15 +43,6 @@
//Set the font, fallback fonts.Need to change the fonts
of Input Select and Textarea explicitly.
$("body, input, select, textarea").css('font-family',
"'"+ font +"', Helvetica, Arial, sans-serif");
- //scale the font of the page. Scale is in percentage.
- // For example scale = 1.2 means scale the font by 120
percentage
- if ( 'scale' in config ) {
- $.webfonts.scale(config.scale);
- }
- else{
- $.webfonts.scale(1);
- }
-
if ( 'normalization' in config ) {
$(document).ready(function() {
$.webfonts.normalize(config.normalization);
@@ -78,16 +69,6 @@
},
/**
- * Scale the font of the page by given percentage
- * @param percentage of scale. eg 1.2 for 120% scale
- */
- scale: function(percentage) {
- //TODO: Not Implemented. Need to find a better way to
emulate fontconfig font-scale feature.
- //Changing the font-size of few selectors does not work
properly and not able to achieve
- //uniform scaling.
- },
-
- /**
* Does a find replace of string on the page.
* @param normalization_rules hashmap of replacement rules.
*/
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs