From: Alexander Ebert Date: Fri, 14 Aug 2015 16:46:28 +0000 (+0200) Subject: Upgraded to FontAwesome 4.4.0, added support for woff2 X-Git-Tag: 2.1.7~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d58a21f3cbc0996fc7ea4e974bdd5a76e43d7dea;p=GitHub%2FWoltLab%2FWCF.git Upgraded to FontAwesome 4.4.0, added support for woff2 Closes #1936 --- diff --git a/wcfsetup/install/files/font/fontawesome-webfont.eot b/wcfsetup/install/files/font/fontawesome-webfont.eot index 33b2bb8005..a30335d748 100755 Binary files a/wcfsetup/install/files/font/fontawesome-webfont.eot and b/wcfsetup/install/files/font/fontawesome-webfont.eot differ diff --git a/wcfsetup/install/files/font/fontawesome-webfont.ttf b/wcfsetup/install/files/font/fontawesome-webfont.ttf index ed9372f8ea..d7994e1308 100755 Binary files a/wcfsetup/install/files/font/fontawesome-webfont.ttf and b/wcfsetup/install/files/font/fontawesome-webfont.ttf differ diff --git a/wcfsetup/install/files/font/fontawesome-webfont.woff b/wcfsetup/install/files/font/fontawesome-webfont.woff index 8b280b98fa..6fd4ede0f3 100755 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 index 0000000000..5560193ccc Binary files /dev/null and b/wcfsetup/install/files/font/fontawesome-webfont.woff2 differ diff --git a/wcfsetup/install/files/font/getFont.php b/wcfsetup/install/files/font/getFont.php index 946da052a3..94ccf37e8e 100644 --- a/wcfsetup/install/files/font/getFont.php +++ b/wcfsetup/install/files/font/getFont.php @@ -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