Upgraded to FontAwesome 4.4.0, added support for woff2
authorAlexander Ebert <ebert@woltlab.com>
Fri, 14 Aug 2015 16:46:28 +0000 (18:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 14 Aug 2015 16:46:28 +0000 (18:46 +0200)
Closes #1936

wcfsetup/install/files/font/fontawesome-webfont.eot
wcfsetup/install/files/font/fontawesome-webfont.ttf
wcfsetup/install/files/font/fontawesome-webfont.woff
wcfsetup/install/files/font/fontawesome-webfont.woff2 [new file with mode: 0644]
wcfsetup/install/files/font/getFont.php

index 33b2bb80055cc480e797de704925acaba4ba7d7d..a30335d748c65c0bab5880b4e6dba53f5c79206c 100755 (executable)
Binary files a/wcfsetup/install/files/font/fontawesome-webfont.eot and b/wcfsetup/install/files/font/fontawesome-webfont.eot differ
index ed9372f8ea0fbaa04f42630a48887e4b38945345..d7994e13086b1ac1a216bd754c93e1bccd65f237 100755 (executable)
Binary files a/wcfsetup/install/files/font/fontawesome-webfont.ttf and b/wcfsetup/install/files/font/fontawesome-webfont.ttf differ
index 8b280b98fa2fa261aa4b0f8fd061f772073ef83e..6fd4ede0f30f170eecb4156beb7235bf01fff00b 100755 (executable)
Binary files a/wcfsetup/install/files/font/fontawesome-webfont.woff and b/wcfsetup/install/files/font/fontawesome-webfont.woff differ
diff --git a/wcfsetup/install/files/font/fontawesome-webfont.woff2 b/wcfsetup/install/files/font/fontawesome-webfont.woff2
new file mode 100644 (file)
index 0000000..5560193
Binary files /dev/null and b/wcfsetup/install/files/font/fontawesome-webfont.woff2 differ
index 946da052a3edc558b3e2b6178a84d7f201d0f9c8..94ccf37e8e42c054ff528fc16551695eabd15cf4 100644 (file)
@@ -14,8 +14,9 @@
 // list of known font types
 $types = array(
        'eot' => 'application/vnd.ms-fontobject',
+       'ttf' => 'application/octet-stream',
        'woff' => 'application/x-woff', // best supported, but this is not the right one according to http://www.w3.org/TR/WOFF/#appendix-b
-       'ttf' => 'application/octet-stream'
+       'woff2' => 'font/woff2' // the specs at http://dev.w3.org/webfonts/WOFF2/spec/ are not perfectly clear, but font/woff2 seems to be the most sane one and is currently used by Google Fonts
 );
 
 // get parameters