Update jquery.webfonts
Use latest upstream version. Commit: 482d0a8df22f * Adds support for WOFF2 webfont format Change-Id: Ic5e966eb14dc70017f9b15787b9ca1cb9043f23b
This commit is contained in:
@@ -308,6 +308,7 @@
|
|||||||
return item.replace( /[\s'"]/g, '' );
|
return item.replace( /[\s'"]/g, '' );
|
||||||
} );
|
} );
|
||||||
fontFamily = fontFamily.replace( /[\s'"]/g, '' );
|
fontFamily = fontFamily.replace( /[\s'"]/g, '' );
|
||||||
|
|
||||||
return $.inArray( fontFamily, overridableFontFamilies ) >= 0;
|
return $.inArray( fontFamily, overridableFontFamilies ) >= 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -422,6 +423,11 @@
|
|||||||
fontFaceRule += 'local(\'' + fontFamily + '\'),';
|
fontFaceRule += 'local(\'' + fontFamily + '\'),';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( fontconfig.woff2 ) {
|
||||||
|
fontFormats.push( '\t\turl(\'' + base + fontconfig.woff2 + versionSuffix
|
||||||
|
+ '\') format(\'woff2\')' );
|
||||||
|
}
|
||||||
|
|
||||||
if ( fontconfig.woff ) {
|
if ( fontconfig.woff ) {
|
||||||
fontFormats.push( '\t\turl(\'' + base + fontconfig.woff + versionSuffix
|
fontFormats.push( '\t\turl(\'' + base + fontconfig.woff + versionSuffix
|
||||||
+ '\') format(\'woff\')' );
|
+ '\') format(\'woff\')' );
|
||||||
|
|||||||
Reference in New Issue
Block a user